Example 1
Invoer
function hello(name) {
// say hi
console.log('Hello ' + name);
}
hello('ToolsOnline');
Uitvoer
Minify JavaScript code quickly in your browser.
Sommige tools draaien in je browser. Sommige kunnen serververwerking vereisen afhankelijk van de functie.
function hello(name) {
// say hi
console.log('Hello ' + name);
}
hello('ToolsOnline');
const items = [1, 2, 3];
items.forEach((x) => {
if (x % 2 === 0) {
console.log(x);
}
});