Could this be a javascript compiler error with else if.
Here is the code;
"use strict"
var me ;
var a=1;
if (a==1)
{me ="hello"}
else if (a==2)
{me ="bye"}
else id (a==3)
{me ="ups"}
console.log(me)
Note that I have 'id' and not 'if' .
You have a final 'ups' value for 'me' .... And no error....
Checked with chrome & firefox
What is happen ?