单项选择题
A.5 B.3 C.undefined D.null
const obj1={};const obj2={foo:’bar’};Object.setPrototyp...
单项选择题const obj1={};const obj2={foo:’bar’};Object.setPrototypeOf(obj1,obj2);const{foo}=obj1;foo的值是什么?()
A.bar B.{ibj1} C.{obj2} D.undefined
let obj = {};let arr = [];({ foo: obj.prop, bar: arr[0]...
单项选择题let obj = {};let arr = [];({ foo: obj.prop, bar: arr[0] } = { foo: 123, bar: true });其中obj的值是什么?()
A.{prop:123} B.[true] C.undefined D.null
letobj={p:[’Hello’,{y:’World’}]};let{p:[x,{y}]}=obj;其中,...
单项选择题letobj={p:[’Hello’,{y:’World’}]};let{p:[x,{y}]}=obj;其中,y的值是()
A.Hello B.World C.undefined D.null