https://code.sololearn.com/WPjGyWkmNTjI/?ref=app With ECMA6 where does this variable stand? Var? Obviously not let. Not constant either.
This is old style js syntax, where 'var' could be omitted. If you add "use strict" at the beginning, such syntax will be disabled and you get error displayed.
I'm not sure exactly what the question is, but the variable "someVar" is considered a global variable. It is a part of window, meaning you could also write console.log(window.someVar) to get the same results.