For some reason using
var sample = "test";
print(sample);
the print function doesn't print the string on the web browser , however it literally uses the print function on my chrome browser . any idea why ? Im actually learning javascript from http://eloquentjavascript.net/ and it uses the print function too.