js es6 assign two variables at the same line code example Example: define two variables in one line javascript var [a,b,c,d] = [0,1,2,3]