Example 1
Đầu vào
function hello(name) {
// say hi
console.log('Hello ' + name);
}
hello('ToolsOnline');
Đầu ra
Minify JavaScript code quickly in your browser.
Một số công cụ chạy trong trình duyệt của bạn. Một số có thể cần xử lý phía máy chủ tùy theo tính năng.
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);
}
});