2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-15 06:12:59 +00:00
cheat.sheets/sheets/_js/hello

17 lines
354 B
Plaintext
Raw Normal View History

2017-06-11 17:00:41 +00:00
// JavaScript is available in most web browsers
2018-07-12 14:43:40 +00:00
// For standalone JavaScript usage
2017-06-11 17:00:41 +00:00
// install Node.js or SpiderMonkey
// Works with web browsers
document.write("Hello world!");
// Works with NJS (0.2.5), Rhino, SpiderMonkey
print('Hello world!');
// Works with JScript
WScript.Echo("Hello world!");
// Works with Node.js
console.log("Hello world!")