Es recomendable declarar variables en javascript la mayoría de las veces con var ?
5/15/2017 10:05:50 PM
Andrea Urdaneta11 Answers
New AnswerNot sure if I got it right , but declaring variables depends on your needs and situations. var - just regular declaring. let - for declaring variables inside of blocks(local variables) to not let it conflict with globals. const to declare variable, supposed to be unchangeable. For most things "var" is enough .
Please which code come after the assignment operator ,when assigning value to this var canvas = ?
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message