LoginSignup
1
2

More than 5 years have passed since last update.

MacOSX Mavericksのターミナルでjavascriptを実行する

Last updated at Posted at 2015-04-13

MacOSX mavericksには、jscというコマンドがあります。

/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc

ソースコード

(function() {
  print("hello world!")
}());

コードの実行結果

$ jsc test.js
hello world!
$
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2