im trying to assign b to c after using c in the calculation, they cant be equal at the same time right now the console.log returns them both with the same number
let b = 1,
c = 1;
for (i = 0; i < 8; i++) {
let a = b + c;
c = a;
a = b + c;
console.log(b);
console.log(c);
b = c;
}
Its not the same, just add some separation to see in console.
let b = 1,
c = 1;
for (i = 0; i < 8; i++) {
let a = b + c;
c = a;
a = b + c;
console.log(b);
console.log(c);
console.log('-------------------------');
b = c;
}