Create one string variable sign that prints these three lines when you log it once: Welcome to Ruta’s Café Today: “Shai” and “Bun” Menu file: C:\menu\today Use \n for the line breaks, escape the double quotes and the backslashes. Then …
The starter has let first = “Senait”; and let last = “Haile”;. Create full by joining first, a space and last with +. Print it. Print the length of full. Print the first letter of first. Print the last letter …
An order form at Asmara Café sent these values (copy them from the starter): let cups = “3”; let price = 15; let paid = true; let note = null; let table; Your job: Print each variable’s name and type, …
Create five variables for Merhawi’s profile: player — the text “Merhawi” age — the number 15 likesFootball — true email — null (he has no email yet) nickname — declared with let but no value Then print the typeof of …
Ruta has let money = 120; Nakfa in her savings jar. Change money with a shortcut operator at every step and print it with a label: She earns 30 Nakfa (+=) → print After work: … She pays 45 Nakfa …
Keren FC starts the season with let points = 0;. Update points after every match and print it each time with console.log(“Points:”, points);: A win: add 3 with +=. Another win: add 3 again with +=. A draw: add 1 …
Yonas got these marks: math = 78, science = 88, english = 92. Create total (the sum of the three marks) and average (the total divided by 3). Calculate from the variable names — do not type 258 or 86. …
The bus from Asmara to Keren takes totalMinutes = 135 minutes. Convert it to hours and minutes with arithmetic: minutes = what is left over after full hours (use %) hours = the number of full hours: subtract the left-over …
Abel has money = 200 Nakfa. A book costs bookPrice = 120 and a pen penPrice = 25. Create: total = book plus pen change = money minus total canBuy = whether money is greater than or equal to total …
Keren FC has wins = 7, draws = 3 and losses = 2. A win is worth 3 points, a draw 1 point. Create: points = wins × 3 + draws games = wins + draws + losses report = …
