File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
courses/foundation/intro-to-javascript/week1 Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -228,8 +228,9 @@ console.log(lastUser);
2282283 . Also inside the folder create a new JavaScript file called "pizza.js"
2292294 . Remember to Include the pizza.js script in the html file
2302305 . Write a log statement, so you know that your javascript code is running:
231-
231+
232232 ` console.log("I love pizza"); `
233+
2332346 . Create a variable to store the name of your favourite pizza
2342357 . Create a variable to store the price of the pizza
2352368 . Now log a statement to the console that will show the chef the entire pizza order in a language they understand, e.g. like this:
@@ -246,4 +247,5 @@ Now we will modify the program so you can order multiple pizzas and decide wheth
2462474 . Modify the log statement for the chef so it includes whether or not the order is for takeaway, and now show the total price of the order:
247248
248249 ` New pizza order (takeaway: <takeaway or not?>): <amount of pizzas> <name of pizza>. Total cost for the order is: <total price> `
250+
2492515 . Try to change the price of the pizza and then check if the total price is calculated correctly
You can’t perform that action at this time.
0 commit comments