homework week1 Muhammad Hussein#176
homework week1 Muhammad Hussein#176MA-Hussein wants to merge 10 commits intoHackYourFuture:masterfrom
Conversation
yash-kapila
left a comment
There was a problem hiding this comment.
Hi @MA-Hussein - I've finished reviewing your homework and am happy to approve it. I've added a few comments though which I think would help you. Could you please have a look at them? Good luck!
| console.log("Hei Verden"); | ||
| console.log("Dia duit ar domhan"); | ||
| console.log("Hallo wr�ld"); | ||
| console.log("Bonjou mond lan"); No newline at end of file |
| console.log("They are the same!"); | ||
| }else { | ||
| console.log("Two different sizes"); | ||
| } No newline at end of file |
| "use strict"; | ||
| /* console.log('I'm awesome'); will not work because we need to escape the single quotation | ||
| mark we need to use \ character. */ | ||
| console.log('I\'m awesome'); //will work fine. No newline at end of file |
| console.log(myString); | ||
| myString = "Muhammad" | ||
| console.log("my first name will be the result."); | ||
| console.log(myString); |
| newVariable = a; | ||
| }; | ||
|
|
||
| console.log(newVariable); No newline at end of file |
There was a problem hiding this comment.
👍 but you could also explore using conditional operators for assigning value to newVariable as this is a good case of using them
| let favoriteAnimals = ["Hamsters", "Cats", "Dogs",]; | ||
| console.log(favoriteAnimals); | ||
| favoriteAnimals.push("Horses"); | ||
| console.log(favoriteAnimals); No newline at end of file |
There was a problem hiding this comment.
Could use const instead of let here 🙂
|
|
||
| "use strict"; | ||
| let mySentence = "Programming is so interesting!"; | ||
| console.log(mySentence.length); No newline at end of file |
There was a problem hiding this comment.
const instead of let here as well
| let var4 = {itemName:"laptop",itemId:0200}; | ||
|
|
||
|
|
||
| console.log(typeof var1); |
There was a problem hiding this comment.
👍 for implementation but you could use const instead of let here
|
|
||
| console.log(y); /* We can see they still have their initial values. | ||
| Because the remainder includes x but not y and z.*/ | ||
| console.log(z); No newline at end of file |
There was a problem hiding this comment.
😄. There was an error in the homework which David corrected this morning. Would you like to revisit?
There was a problem hiding this comment.
Updated according to the homework updates . Thanks a lot Ysah for your helpful comments .
|
Thanks for the changes @MA-Hussein ! Is this approved now @yash-kapila ? |
|
Yip. This is approved. |
No description provided.