code - Re declaration error in strict mode (Read about var, let, const (their scoping issues) and variable and function hoisting). Also, would have been good for readability if you would have indented lines following if so as to tell which lines were effected by it. (May also comment why the if statement was present, although it was self explanatory so not much of an issue)
code Would have been better if you would have used template strings (ES6 feature)
Apart from that nice job, on the clock :tada: :tada:
code
- Re declaration error instrict
mode (Read aboutvar
,let
,const
(their scoping issues) and variable and function hoisting). Also, would have been good for readability if you would have indented lines followingif
so as to tell which lines were effected by it. (May also comment why theif
statement was present, although it was self explanatory so not much of an issue)code
Would have been better if you would have used template strings (ES6 feature)Apart from that nice job, on the clock :tada: :tada: