Message from JavaScript discussions

September 2017

— Yes, you just need to swap/change the variables normally

— 

Var m = function(n){
var a = 0;
var b = 1;
for(var i = 0, i<n, i=i+1){
a = b;
b = a + b;
};
return a;
};

console.log(m(4));

//so this should work?

— Just try it?

— Your Computer won't blow up

— I am using repl.it through my mobile so i don't know if the problem is from repl

— Disgusting lol (please don't do this...)

— Its showing that i is not define and some other funny errors

— 😂😂

— But from the rules this should work

— ES6 also does this

— [ a, b ] = [ b, a ]
Works fine in JS

— Constructs an array on the right-hand side, deconstructs it on the left