repl.it
@isreal/

factory-function-eval-question

JavaScript

No description

fork
loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*Write a function called `makeOrder`. It should take a table number, an array of order items, and an order status as arguments. It should return an object with the keys `tableNumber`, `order`, and `status` and their associated values.*/

//Function makeOrder with table number,array, and status passed in arugement 
 function makeOrder(table,order,status){
//object with keys and values
let order = {
  table: 10,
  items:["burger","fries", "coke"],
  order: "waiting",
  totalOrder = function (){
  //loops through object and returns objects and their values together
  return Object.enteries(order);
    }
  }
  console.log(totalOrder)
};




 
 


  








Native Browser JavaScript
?