MahabirGupta / JS-06-DOM-Manipulation

0 stars 0 forks source link

Comment #1

Open winston0410 opened 3 years ago

winston0410 commented 3 years ago

use const

https://github.com/MahabirGupta/JS-06-DOM-Manipulation/blob/b80ea9d264cdaeb87e4b432e1cad3a9c6e2e89be/Exercise-1.js#L5

You can use style or classList, both will do

https://github.com/MahabirGupta/JS-06-DOM-Manipulation/blob/b80ea9d264cdaeb87e4b432e1cad3a9c6e2e89be/Exercise-1.js#L2-L4

You have to declare the variable, either let, const,var

https://github.com/MahabirGupta/JS-06-DOM-Manipulation/blob/b80ea9d264cdaeb87e4b432e1cad3a9c6e2e89be/Exercise-2.js#L2-L3

You just need to get first and last. You don't need to use loop at all

https://github.com/MahabirGupta/JS-06-DOM-Manipulation/blob/b80ea9d264cdaeb87e4b432e1cad3a9c6e2e89be/Exercise-3.js#L7-L10

Dont be fancy. const

https://github.com/MahabirGupta/JS-06-DOM-Manipulation/blob/b80ea9d264cdaeb87e4b432e1cad3a9c6e2e89be/Exercise-4.js#L5-L9

MahabirGupta commented 3 years ago

Thank you for your feedback Hugo.