<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
Hi everyone, I’m curious as to what environment the code below belongs to. I’m new to coding and I practiced using javascript on Webstorm v10. I think it’s safe to assume print() is the same as console.log. However what exactly is readline() since it doesn’t look like a regular JS function. Is this the equivalent of the prompt or readlineSync.question function that takes user input? For example in line 1, is var n set to collect user input while being converted from string to integer (hence theparseInt function)? Any feedback is much appreciated.
// Write an action using print()
// To debug: printErr(‘Debug messages…’);
print(‘result’);
<do not remove the three backticks above>