minus-squareinetknght@lemmy.mltoProgrammer Humor@lemmy.ml•the hardest exam questionlinkfedilinkarrow-up5·5 months ago It’s also not a scripting language. It definitely is a scripting language. hello-world.js: #!/usr/bin/env node console.log("Hello world"); Your favorite command line tool: chmod +x ./hello-world.js ./hello-world.js You just need to install npm, eg via apt-get install npm. linkfedilink
minus-squareinetknght@lemmy.mltoProgrammer Humor@lemmy.ml•C++ Momentlinkfedilinkarrow-up5·7 months ago…unless you build the executable with optimizations that remove the stack frame. Good luck debugging that sucker! linkfedilink
It definitely is a scripting language.
hello-world.js
:#!/usr/bin/env node console.log("Hello world");
Your favorite command line tool:
chmod +x ./hello-world.js ./hello-world.js
You just need to install
npm
, eg viaapt-get install npm
.