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);
}
});