Using JSC's Shell

date
Mar 10, 2015
slug
using-jscs-shell
status
Published
tags
Migrated
English
Hacks
summary
JS interpreter at your disposal without having to install node.
type
Post
All current versions of Mac OS X come with a nifty little JavaScript runtime that not many know about, called jsc.
Since it is not located in a convenient location for access, it's recommended to put it in a path for easier access.
Although it only handles standard ECMAScript (e.g. no console.log) it's useful for times when one does not want to install node.js for testing pure algorithm code. Simple scripts can be executed with
or simply invoking the command will drop you into a REPL context.
 

© Sangwhan Moon 2014 - 2025