Class 8B plans a trip to Massawa. Write the budget using only const (no let, no var): busFare = 40, lunch = 35, students = 20 perStudent = bus fare plus lunch total = perStudent times students Print exactly: Per …
The starter code stops with TypeError: Assignment to constant variable. The team name never changes, but the number of goals does. Fix the program by choosing the right keyword for each variable: keep team a const and make goals a …
The starter code crashes with a SyntaxError. Fix it and finish the program: Line 2 must change the existing city to “Keren” (no second declaration). Add a block { } between the two prints. Inside it, declare a new let …
Senait plays three rounds of a quiz. Under each comment, change score with an assignment of the form score = score + …; or score = score – …;: Round 1: add 10 points Round 2: add 5 points Round …
Selam orders at the café. Create these variables with let: teaPrice = 15, breadPrice = 10, teaCups = 3, breadPieces = 2, and total = the cost of all tea plus all bread (calculated from the variables). Print Total: 65. …
Create three variables with let: student with the text “Ruta” age with the number 14 city with the text “Mendefera” Then print the card using the variables (do not type the values again inside console.log): Name: Ruta Age: 14 City: …
Make Ruta’s program clean and well documented: Start with a multi-line /* … */ comment that is at least two lines long (for example the program name and the author). Switch off the three lines Pages on Wednesday, Test line …
The café menu has two wrong lines: Tea: 150 Nakfa and Pizza: 1 Nakfa. Do not delete them — comment them out with // so the owner can fix them later. Also add a comment on the very first line, …
Merhawi wrote a menu for his café, but every line has a syntax mistake. Fix the code (do not delete lines) so it prints exactly: Merhawi’s café Tea: 15 Nakfa Coffee: 20 Two teas: 30 Keep the calculation 2 * …
Print exactly these three lines: Full name: Yonas Tekle Team size: 11 Points: 36 Line 1: join four strings with +: “Full name: “, “Yonas”, ” ” and “Tekle”. Line 2: calculate 5 + 6. Line 3: Yonas’s team won …
