Difference between revisions of "JavaScript"
From MgmtWiki
(→Running a JavaScript) |
|||
Line 1: | Line 1: | ||
==Full Title== | ==Full Title== | ||
[[JavaScript]]is a lightweight program language that is typically interpreted by a virtual machine although it can be just-in-time compiled. | [[JavaScript]]is a lightweight program language that is typically interpreted by a virtual machine although it can be just-in-time compiled. | ||
+ | |||
+ | JavaScript is a pseudonym for ECMA script. There is no actual connection with the language Java other than historical. | ||
==Context== | ==Context== | ||
Line 6: | Line 8: | ||
==Solutions== | ==Solutions== | ||
===Running a JavaScript=== | ===Running a JavaScript=== | ||
− | # All modern | + | # All modern browsers come with JavaScript enabled. |
# The common way to run JavaScript on a computer is with Node installed using the local terminal program. | # 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 | + | ## Open a terminal program that accepts command prompts |
## Locate your path where the .js file is saved. | ## Locate your path where the .js file is saved. | ||
− | ## To compile the .js file | + | ## To compile the .js file enter on the terminal |
###Node <Filename>.js | ###Node <Filename>.js | ||
## Press the Enter key. | ## Press the Enter key. |
Revision as of 11:55, 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.
JavaScript is a pseudonym for ECMA script. There is no actual connection with the language Java other than historical.
Context
JavaScript was first implements by Netscape to add
Solutions
Running a JavaScript
- All modern browsers come with JavaScript enabled.
- The common way to run JavaScript on a computer is with Node installed using the local terminal program.
- Save your JavaScript with .js extension.
- Open a terminal program that accepts command prompts
- Locate your path where the .js file is saved.
- To compile the .js file enter on the terminal
- Node <Filename>.js
- Press the Enter key.