Message from JavaScript discussions

February 2019

β€” Hide? No, you can’t.

β€” 

This is a modern and simple way: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch

β€” PS: not so simple🀀

β€” Let cars = [ ];

Here what does "let" denote? JavaScript

β€” Reassignable block-scoped variable

β€” Is this correct? An array with different attributes elements

β€” Let cars = [ var name=[ "Sam", "Francis" ]
Var cost= [ 200,400]
];

Is this correct?

β€” No

β€” No

β€” => this is for?

β€” const cars = {
name: [ 'Sam', 'Francis' ],
cost: [ 200, 400 ]
};

β€” Alternatively:
const cars = [
{ name: 'Sam', cost: 200 },
{ name: 'Francis', cost: 400 }
];