Starting from:

$25

COMP1073- Assignment 1 JavaScript & Coffee Solved

Using the knowledge you’ve gained in Module One, complete the following:  

Instructions :  

1.        Create an object literal to represent a coffee order that a customer might place. Your coffee object should contain the following properties: customer name, type of drink (i.e. latte, coffee, expresso), size of coffee (short, tall, grande, venti) , drizzle (yes or no) ,whipped cream (yes or no) , sweetener (yes or no), cold foam (yes or no) and dairy (cream, 2% milk, almond milk).

2.        In your object literal, include a method to display the coffee order information in an alert box. Drizzle, whipped cream, sweetener and cold foam should only be displayed if they are included in the customer order

(i.e. yes).  

3.        Ask a friend how they take their coffee. Create a second object literal to represent this coffee order.  

4.        Ensure your code is valid, efficient, follows best practices and is formatted correctly!  

5.        Publish your page on a web server (AWS, Github pages or your own web server).

6.        Create a short code review screencast in which you review and explain your code. You can use YouTube, Flipgrid or any other platform you have access to in order to create this screencast.  

More products