Open winston0410 opened 3 years ago
use const
const
https://github.com/MahabirGupta/JS-06-DOM-Manipulation/blob/b80ea9d264cdaeb87e4b432e1cad3a9c6e2e89be/Exercise-1.js#L5
You can use style or classList, both will do
style
classList
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
let
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
Thank you for your feedback Hugo.
use
const
https://github.com/MahabirGupta/JS-06-DOM-Manipulation/blob/b80ea9d264cdaeb87e4b432e1cad3a9c6e2e89be/Exercise-1.js#L5
You can use
style
orclassList
, both will dohttps://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