amirno1 / hyf-javascript1 Goto Github PK
View Code? Open in Web Editor NEWHomework JavaScript 1
Homework JavaScript 1
Hi Amir,
Very nice homework.
I would just be careful in the Arrays.js exercise:
Other than those small points, really nice neat and readable work that works! ๐ Nicely done.
Hi Amir, here is my feedback on your homework for week 3.
Overall this looks pretty good.
Correct!
Correct!
You can combine the spaces in the corresponding string literals:
return "a " + color + " car";
Correct!
Although it produces the correct results, I think you overlooked this part of the instruction:
Your function should return a string,
So rather than using console.log
inside the function body, return the result as a string and console.log the result when you call the function. This will make your function pure and free of side effects: the most desirable form for a function.
Correct!
See my comment on 4.
It would be best to move the array inside the function body and remove the console.log
statement from the function body. This would make the function pure and without side effects.
Correct! But make your function pure and without side effects.
See my slack message for alternative implementations.
Correct! See my comment for 8 above.
Correct!
Using a metaphor: x
and y
are like twin brothers, they look the same but are separate entities. However, z
is just another name for x
.
Apply the same reasoning as for 11 above.
This was explained by Tamir in class.
Hi Amir,
The only thing I have to say is really nice work.
Everything works as specified, and the code is (again) very nicely laid out and readable.
Well done!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.