Question:Which of the following is/are the correct example of object literal(s)? 

A var shopCart={item:5.95,tax:.07,shopping:14.95} 

B var shopCart=[ item:5.95,tax:.07,shopping:14.95] 

C var shopCart=[ item:5.95;tax:.07;shopping:14.95] 

D var shopCart={item:5.95;tax:.07;shopping:14.95;} 

+ Answer
+ Report
Total Preview: 227

Copyright © 2024. Powered by Intellect Software Ltd