Skip to content

done#10

Open
azizomarck wants to merge 1 commit into
hackyourfuturecanada:masterfrom
azizomarck:Aziz-Omar
Open

done#10
azizomarck wants to merge 1 commit into
hackyourfuturecanada:masterfrom
azizomarck:Aziz-Omar

Conversation

@azizomarck
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Collaborator

@epq epq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work!

Comment thread answer.js
console.log((3 === 3) ? "yes" : "no");

//6
function vehicle(color,code,age){
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You haven't used your age parameter here. What if I wanted to print out a new vehicle?

Comment thread ex.js

function printFavoriteBooks(){
for(let i = 0; i<favoriteBooks.length; i++){
console.log(`Your ${favoriteBooks.length } favorite books are : ${i+1}. ${favoriteBooks[i]}`)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not really an issue, but I would just print out Your ${favoriteBooks.length } favorite books are once at the beginning instead of inside the loop because this message is more like a title instead of something that should be repeated for each line.

Comment thread answer.js
};

//3
function printObj(obj){
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your function is well-written, but the question also asks you to create a sample object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants