- script.js
JavaScript
Result
Goalscompleted
- Declare function
buildComputerwith parametersmemory,display,processor. - Inside the function, create object
computerwith propertiesbasicPrice: 5000,processor: processor,display: display,memory: memory. - Return the
computerobject from the function. - Call the function using arguments
8,13,'i7'and record the result of the call in variablemyComputer. - Log the
myComputervariable in the console.
Comments