Node - script (Javascript)

1 - About

Javascript - Script in the node engine.

3 - Management

3.1 - Location

Javascript file are generally in the src, lib, or dist directory

3.2 - Argument Parser

  • commander

3.3 - Execution

3.3.1 - Node

To run the below script with the node engine:


console('Hello World!');

  • At the command line

node HelloWorld.js


Hello World!

3.3.2 - Browser


<script src="https://embed.runkit.com" data-element-id="my-element"></script>

<!-- anywhere else on your page -->
<div id="my-element">// GeoJSON!
    var getJSON = require("async-get-json");
    await getJSON("https://storage.googleapis.com/maps-devrel/google.json");
</div>


Data Science
Data Analysis
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap