QUESTION 14 “Given this object, how would you assign the model to a variable named m?…

QUESTION 14

“Given this object,
how would you assign the model to a variable named m?
var myCar = {make:
‘Plymouth’, model: ‘Valiant’, year: 1968}”

myCar.model(m);

m = model.myCar;

m = model.model;

m = myCar.model;

QUESTION 19

This program will
produce an error. Why?
var x;

for(var i = 0; i < 12; i++) { x = x + 2; } the variable i is illegally declared there is an attempt to read the value of x before x has been assigned a value the for-loop will never execute this program will not produce an error QUESTION 20 How many times will this loop execute? var x = 0; for(var i = 8; i = 3; i--) { x = x + 2; } 7 5 6 0