About JavaScript
JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions. While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as Node.js.
Syntax Help
Fundamentals
- Variables:
let(mutable),const(immutable),var(legacy) - Functions:
function name() { }orconst name = () => { } - Output:
console.log("text")
Example:
// Greet function
const greet = (name) => {
return "Hello, " + name;
};
console.log(greet("World"));
- Data Types:
String,Number,Boolean,Object,Array... - Loops:
for,for...of,while
Interactivity
This editor captures console.log() output directly. Standard DOM
manipulation is not visible here; use the Console for output.
About JavaScript
JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions. While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as Node.js.
Syntax Help
Fundamentals
- Variables:
let(mutable),const(immutable),var(legacy) - Functions:
function name() { }orconst name = () => { } - Output:
console.log("text")
Example:
// Greet function
const greet = (name) => {
return "Hello, " + name;
};
console.log(greet("World"));
- Data Types:
String,Number,Boolean,Object,Array... - Loops:
for,for...of,while
Interactivity
This editor captures console.log() output directly. Standard DOM
manipulation is not visible here; use the Console for output.