Roc Tanweerβ’ 2,500
@RocTanweer
Posted
I saw the code now....
You should use semantic HTML5 tags and not just divs
Always avoid using var and start using let or const
Reasons to not use var...
- it is hoisted, mean you can use it before it's declaration
- create property on window object
- It is function scope and not block scope, mean you can manipulate the variable inside of a for-loop or if-else block from outside
Marked as helpful
0
Hamza-Noahβ’ 280
@Hamza-Noah
Posted
@RocTanweer Thanks for your valuable information
0