define two variables in one line javascript

JavaScript
var [a,b,c,d] = [0,1,2,3]
Source

Also in JavaScript: