Giter VIP home page Giter VIP logo

hyf-javascript1's People

Contributors

elmira202003 avatar

Watchers

 avatar

hyf-javascript1's Issues

Feedback homework week 2

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

  • There is another way to determine the highest value of two numbers. Google for 'mdn math' and see what you can find.
  • If you use an 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

  • Use the triple form === in preference over ==.
  • Formatting of if statements, see above.

no.10 exercise

  • if statement formatting

As 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 .

Feedback homework week 3

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.