Classic Proof Fallacy
JavaScript
var a=3,b=3,a2=3,b2=3
[a2,b2]=[a2*a,b2*a]
[a2,b2]=[a2-b*b,b2-b*b]
[a2,b2]=[a2/(a-b),b2/(a-b)]
console.log([a2/a,b2/a])

Output:
[1, NaN]

Note that 0/0 = NaN
Hint

 Try add some semicolons.
 This program is actually var a=3,b=3,a2=3,b2=3[a2,b2]=...=[a2/(a-b),b2/(a-b)];console.log([a2/a,b2/a]).
 And the NaN is [3/0,undefined/0]/3.