LoginSignup
3
1

Node.jsのインタプリタ内でJSファイルを読み込む

Last updated at Posted at 2016-06-03

備忘録

単にインタプリタ内で .load <js file> と入力することで、コンソールに <js file> の中身が全て吐き出されてそのまま実行される

インタプリタ
> .load <js file>
> console.log("hello, world!"); // こいつが<js file>の内容
hello, world!
undefined
> 
3
1
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
3
1