2017-06-11 17:00:41 +00:00
|
|
|
# js
|
|
|
|
#
|
2020-03-10 17:44:45 +00:00
|
|
|
# JavaScript often abbreviated as "JS", is a high-level, dynamic, untyped, -
|
|
|
|
# interpreted run-time language. It has been standardized in the ECMAScript
|
|
|
|
# language specification.
|
2017-06-11 17:00:41 +00:00
|
|
|
#
|
2020-03-10 17:44:45 +00:00
|
|
|
# `js` is a JavaScript shell, part of SpiderMonkey. To install spidermonkey in
|
|
|
|
# Debian systems, execute: apt-get install libmozjs-24-bin
|
2017-06-11 17:00:41 +00:00
|
|
|
|
2020-03-10 17:44:45 +00:00
|
|
|
# Launch an interactive JavaScript session.
|
2017-06-11 17:00:41 +00:00
|
|
|
js
|
|
|
|
|
2020-03-10 17:44:45 +00:00
|
|
|
# Run the JavaScript code in the file `hello.js`.
|
2017-06-11 17:00:41 +00:00
|
|
|
js hello.js
|
|
|
|
|
2020-03-10 17:44:45 +00:00
|
|
|
# Run the `hello.js` file, then drop into the interactive shell.
|
2017-06-11 17:00:41 +00:00
|
|
|
js -f hello.js -i
|
|
|
|
|
|
|
|
# See also:
|
|
|
|
# JavaScript language cheat sheets at /js/
|
|
|
|
# list of pages: /js/:list
|
|
|
|
# learn JavaScript: /js/:learn
|
|
|
|
# JS one-liners: /js/1line
|
|
|
|
# JS weirdness: /js/weirdness
|
|
|
|
# search in pages: /js/~keyword
|