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