Hi,
I’m just learning javascript and looking for advice on how to use ‘use strict’ and the readline function.
When I add ‘use strict’ to the top of the code, a warning icon shows up on the lines which use readline(). Message says ‘readline is not defined’. But code works.
I change the readline() calls to this.readline() and the messages changes to ‘possible strict violation’
'use strict'
var N = parseInt(this.readline());
What’s the correct way to do this using ‘use strict’?
I searched spider monkey and google and couldn’t find an answer.
Thanks,
Crispy