Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node main

// main.js / main.ts (the filename doesn't matter)

function main() {
  console.log("Hello world");
}

if (require.main === module) {
  main();
}
 
PREVIOUS NEXT
Tagged: #node #main
ADD COMMENT
Topic
Name
4+5 =