logo

目录

Javascript Quiz(三)

Q91. What will this code print?

const obj = { a: 1, b: 2, c: 3,};const obj2 = { ...obj, a: 0,};console.log(obj2.a, obj2.b);
Nothing, it will throw an error
0 2
undefined 2
undefined 2

Q92. Which line could you add to this code to print “jaguar” to the console?

本章目录
    1v1免费职业咨询