'F' → Fullscreen
// String Variablesconsole.log("- About Me -");let person = ""; // Insert your name into the stringlet food = "Pizza Hut Pepperoni Pizza"; // Replace pizza with your favorite food
console.log(`Hello, my name is ${person}!`);console.log(`I, ${person}, love to eat ${food}.`);console.log();//
// String Variablesconsole.log("- About Me -");let person = ""; // Insert your name into the stringlet food = "Pizza Hut Pepperoni Pizza"; // Replace pizza with your favorite food
console.log(`Hello, my name is ${person}!`);console.log(`I, ${person}, love to eat ${food}.`);console.log();
console.log("- Tongue Twister -");let item = ""; // Insert a generic itemconsole.log(`Try saying this five times fast:`);console.log(`Peter Piper picked a peck of pickled ${item}.`);console.log(`A peck of pickled ${item} Peter Piper picked.`);console.log(`If Peter Piper picked a peck of ${item},`);console.log(`Where's the peck of ${item} Peter Piper picked?`);console.log();//
// String Variablesconsole.log("- About Me -");let person = ""; // Insert your name into the stringlet food = "Pizza Hut Pepperoni Pizza"; // Replace pizza with your favorite food
console.log(`Hello, my name is ${person}!`);console.log(`I, ${person}, love to eat ${food}.`);console.log();
console.log("- Tongue Twister -");let item = ""; // Insert a generic itemconsole.log(`Try saying this five times fast:`);console.log(`Peter Piper picked a peck of pickled ${item}.`);console.log(`A peck of pickled ${item} Peter Piper picked.`);console.log(`If Peter Piper picked a peck of ${item},`);console.log(`Where's the peck of ${item} Peter Piper picked?`);console.log();
// Number Variablesconsole.log("- Health Demo -");let health = 100;let damage = 55;console.log(`You've taken ${damage} damage. You have ${health - damage} health left.`);console.log();//
// String Variablesconsole.log("- About Me -");let person = ""; // Insert your name into the stringlet food = "Pizza Hut Pepperoni Pizza"; // Replace pizza with your favorite food
console.log(`Hello, my name is ${person}!`);console.log(`I, ${person}, love to eat ${food}.`);console.log();
console.log("- Tongue Twister -");let item = ""; // Insert a generic itemconsole.log(`Try saying this five times fast:`);console.log(`Peter Piper picked a peck of pickled ${item}.`);console.log(`A peck of pickled ${item} Peter Piper picked.`);console.log(`If Peter Piper picked a peck of ${item},`);console.log(`Where's the peck of ${item} Peter Piper picked?`);console.log();
// Number Variablesconsole.log("- Health Demo -");let health = 100;let damage = 55;console.log(`You've taken ${damage} damage. You have ${health - damage} health left.`);console.log();
console.log("- Age Demo -");let age; // Set the age variables to your age with the assignment operator (=)console.log(`you will reach age 100 in ${100 - age} years.`);console.log();//
// String Variablesconsole.log("- About Me -");let person = ""; // Insert your name into the stringlet food = "Pizza Hut Pepperoni Pizza"; // Replace pizza with your favorite food
console.log(`Hello, my name is ${person}!`);console.log(`I, ${person}, love to eat ${food}.`);console.log();
console.log("- Tongue Twister -");let item = ""; // Insert a generic itemconsole.log(`Try saying this five times fast:`);console.log(`Peter Piper picked a peck of pickled ${item}.`);console.log(`A peck of pickled ${item} Peter Piper picked.`);console.log(`If Peter Piper picked a peck of ${item},`);console.log(`Where's the peck of ${item} Peter Piper picked?`);console.log();
// Number Variablesconsole.log("- Health Demo -");let health = 100;let damage = 55;console.log(`You've taken ${damage} damage. You have ${health - damage} health left.`);console.log();
console.log("- Age Demo -");let age; // Set the age variables to your age with the assignment operator (=)console.log(`you will reach age 100 in ${100 - age} years.`);console.log();
console.log("- Money Demo -");let balance = 100.25;let withdraw = 0; // Replace 0 with a positive number of your choice.let leftover = balance - withdraw;console.log(`You have a balance of $${balance} in your bank account`);console.log(`If you take out $${withdraw}, you will have $${leftover} left.`);//
Your program output should something similar to the sample output below.
- About Me -Hello, my name is Anthony!I, Anthony, love to eat Pizza Hut Pepperoni Pizza.
- Tongue Twister -Try saying this five times fast:Peter Piper picked a peck of pickled sausages.A peck of pickled sausages Peter Piper picked.If Peter Piper picked a peck of sausages,Where's the peck of sausages Peter Piper picked?
- Health Demo -You've taken 55 damage. You have 45 health left.
- Age Demo -you will reach age 100 in 65 years.
- Money Demo -You have a balance of $100.25 in your bank accountIf you take out $50, you will have $50.25 left.
You may write your reflection answers as comments at the bottom of your code.
Submit your activity and reflection answers to the appropriate dropbox.