You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var x = undefined;
if(x) print(x) //yields nothing
if(!x) print(x) //prints "undefined"
I also checked Boolean(undefined). This evaluates to false as it should, so maybe there's something wrong with the if logic.
For the second issue, mine printed undefined so this was probably fixed.
I'll add these as test cases when I familiarize myself more with the repo.
var x = undefined;
if(x) print(x) //yields nothing
if(!x) print(x) //prints "undefined"
I also checked Boolean(undefined). This evaluates to false as it should, so maybe there's something wrong with the if logic. For the second issue, mine printed undefined so this was probably fixed.
I'll add these as test cases when I familiarize myself more with the repo.
Hi. Thanks for testing.
Did you test the output of "typeof x" after set it as undefined?
Hi. Undefined or not initialized variables presents a strange behavior in version 1.7.14
Like this code:
Not initialized variables also reports its types as strings
This codes prints: "string"
Is this somehow expected?
Edit note:
With 1.7.13 works fine.
The text was updated successfully, but these errors were encountered: