+ 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
3 Antworten
+ 8
That is destructuring Assignment. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
+ 3
Chris Coder Nice one, thank you.
+ 3
You're welcome!