can an array be my variable name.eg, Var [hour, second, minutes] = [0, 0, 0]; pls explain this expression if it is correct. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

can an array be my variable name.eg, Var [hour, second, minutes] = [0, 0, 0]; pls explain this expression if it is correct.

JavaScript variable name, Array

13th Oct 2023, 10:00 PM
Temmy
Temmy - avatar
3 Answers
13th Oct 2023, 10:18 PM
Chris Coder
Chris Coder - avatar
+ 3
Chris Coder Nice one, thank you.
14th Oct 2023, 4:30 AM
Temmy
Temmy - avatar
+ 3
You're welcome!
14th Oct 2023, 5:04 AM
Chris Coder
Chris Coder - avatar