let x = 10;
const name = "Matrix";
function getData() {
return fetch('api/data');
}
if (user.isLoggedIn) {
console.log("Welcome");
}
for (let i = 0; i < 10; i++) {
document.write(i);
}
fetchData().then(response => {
console.log(response);
});
const arr = [1, 2, 3, 4];
arr.map(item => item * 2);
let result = doSomething();
setTimeout(() => {}, 3000);
try { callFunction(); } catch (e) {}
function init() { console.log("Start"); }
KHÔI