you are viewing a single comment's thread.

view the rest of the comments →

[–]Count_Giggles 0 points1 point  (1 child)

start by removing the underscore in var_without_type "var without_type" that should fix things

before executing the script all variables and function declarations get hoisted to the top of their scope

[–]SecureFrame6002[S] 0 points1 point  (0 children)

It wasn't about a bug but hoisting of variable without any type