Message from JavaScript discussions

February 2019

— 

const carDetails = {
carName: ...,
onRoadPrice: ...,
yearofModel: ...
};

— 

And how to access these elements? Like if I want first one from each carname , onroadprice and yearofmodel

— carDetails.carName[0]

— First carName

— What is const here?

— Ok

— I have tried many ways to resume() the code but I still have the same error mate

— Means you can't set carDetails to another value later

— Offers some security

— Okay

— And any of this ways to resume implicates user interaction?

— If this event is not triggered by a user it won’t work.