Difference between revisions of "JavaScript"

From MgmtWiki
Jump to: navigation, search
(Running a JavaScript)
(Running a JavaScript)
Line 7: Line 7:
 
===Running a JavaScript===
 
===Running a JavaScript===
 
# All modern browser come with JavaScript enabled.
 
# All modern browser come with JavaScript enabled.
# The common way to run JavaScript on a computer is with Node installed.
+
# The common way to run JavaScript on a computer is with Node installed using the local terminal program.
## Save your javascript with .js extension.
+
## Save your JavaScript with .js extension.
 
## Open the command prompt
 
## Open the command prompt
 
## Locate your path where the .js file is saved.
 
## Locate your path where the .js file is saved.
## To compile the .js file we have to write
+
## To compile the .js file we have to enter on the terminal
 
###Node <Filename>.js
 
###Node <Filename>.js
 
## Press the Enter key.
 
## Press the Enter key.

Revision as of 11:51, 11 August 2024

Full Title

JavaScriptis a lightweight program language that is typically interpreted by a virtual machine although it can be just-in-time compiled.

Context

JavaScript was first implements by Netscape to add

Solutions

Running a JavaScript

  1. All modern browser come with JavaScript enabled.
  2. The common way to run JavaScript on a computer is with Node installed using the local terminal program.
    1. Save your JavaScript with .js extension.
    2. Open the command prompt
    3. Locate your path where the .js file is saved.
    4. To compile the .js file we have to enter on the terminal
      1. Node <Filename>.js
    5. Press the Enter key.

References