Variables | Sololearn: Learn to code for FREE!

+5

Variables

Es recomendable declarar variables en javascript la mayoría de las veces con var ?

5/15/2017 10:05:50 PM

Andrea Urdaneta

11 Answers

New Answer

+3

Not 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 .

+2

c++ /if

0

Variables

0

0

0

¿Hola alguien sabe cuales son los tipos de varrible?

0

What is the console.log

0

0

-1

Please which code come after the assignment operator ,when assigning value to this var canvas = ?

-2

CAN YOU CALL ON A VAR MULTIPLE TIME.