JavaScript playground
const name = "you";
for (let i = 3; i > 0; i--) {
console.log(i + "...");
}
console.log(`Hello, ${name}!`);
Output
Press Run.
Want lessons and checked exercises? Learn JavaScript
Your progress
const name = "you";
for (let i = 3; i > 0; i--) {
console.log(i + "...");
}
console.log(`Hello, ${name}!`);
Press Run.
Want lessons and checked exercises? Learn JavaScript
Code editor. Press Control or Command plus Enter to run the code. Tab indents; to move focus out of the editor, press Escape and then Tab.