- 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 with the arguments
8,13,'i7'and store the return value in the variablemyComputer. - Log the
myComputervariable in the console.
Comments