elmira202003 / hyf-javascript1 Goto Github PK
View Code? Open in Web Editor NEWJavaScript 1 Homework
JavaScript 1 Homework
Dear Beauty, you have been doing fantastic job he, you have done great work , I have been implemented your code, there are really neat and comprehensible,especially you have been using this syntax right place ( condition ? expr1: expr2 ), now I have realized that I have been rarely using this syntax, again really appreciate your homework.
Hi Elmira, here is my feedback on your homework.
I suspect that your VSCode setup does not completely match what we tried to set up during the lecture. Can you please check the VSCode Tips and verify the settings for "editor.formatOnType"
and ""editor.formatOnPaste"
?
Also, make sure that you create an .eslintrc.json
file in the root folder of your repo. Again, see VSCode Tips.
For readability of your code, it would be nice to separate the exercises with a blank line, similar what you would do when you write a piece of text: you would probably separate paragraphs with a blank line.
no.5 exercise
if
statement it is a best practice to start a new line after an opening curly brace and indent the content within the braces:if (z > a) {
console.log(z);
} else {
console.log(a);
}
no.6 exercise
If you want to split the initialisation values of an array across multiple lines it is best practice to start a new line after the opening square bracket:
pets = [
'dog',
'cat',
'sheep',
'hen',
'chicken',
'horse'
];
no.8 exercise
===
in preference over ==
.if
statements, see above.no.10 exercise
if
statement formattingAs you can see, my comments are mainly about formatting. Functionality-wise your code is 100% correct and I didn't see any spelling errors. Well done!
thank you for your great comments teacher. I do them .
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.