repl.it
@isreal/

factory-function-eval-question-1

JavaScript

No description

fork
loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*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(tableNumber, order, status) {

let orderStatus = {
  tableNumber: tableNumber,
  order: order,
  status: status
}
return orderStatus

}
console.log(makeOrder(10,['fries','chips'],'waiting'))
Native Browser JavaScript
?