var a=0; reports undefined error #2

Closed
opened 2015-04-07 13:14:09 +00:00 by kaisatec · 1 comment
kaisatec commented 2015-04-07 13:14:09 +00:00 (Migrated from github.com)

Thanks for your great job

there is an issue, in shell I input

   var a=0; 

it reports undefined error

I have to remove 'var', then it works

Is it not standard javascript?

Thanks

Z Wang

Thanks for your great job there is an issue, in shell I input ``` var a=0; ``` it reports undefined error I have to remove 'var', then it works Is it not standard javascript? Thanks Z Wang
BeRo1985 commented 2015-04-07 15:29:51 +00:00 (Migrated from github.com)

This is no error. "var a=0;" returns just a undefined value.

Test it also in the javascript consoles of Firefox and Chrome, you will see, that it is no error. :)

This is no error. "var a=0;" returns just a undefined value. Test it also in the javascript consoles of Firefox and Chrome, you will see, that it is no error. :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BeRo1985/besen#2
No description provided.