Example 1
输入
function hello(name) {
// say hi
console.log('Hello ' + name);
}
hello('ToolsOnline');
输出
Minify JavaScript code quickly in your browser.
部分工具在浏览器内运行。某些功能可能需要服务器处理。
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);
}
});