Is my code correct in terms of logic.Kindly reply?


#1

var myObj = {};
myObj.type="Test plan";
myObj.number = 829;
var myArray = [2,true,'Acer',myObj];


#2

Hi @anushree27

You're code looks like good. You can test it :

console.log(myArray);

Hold on :wink: