JS 属性读写题
function getObject() {}
function getKey() {}

let obj = getObject();
let key = getKey();

let valueA = obj[key];
let valueB = 3;
obj[key] = valueB
let valueC = obj[key];

assert(isNaN(valueA)); // false
assert(isNaN(valueC)); // false
assert(valueA === valueB); // false
assert(valueB === valueC); // false
assert(valueA === valueC); // false

CyanSalt
function getObject() {
  return localStorage;
}
function getKey() {
  return 'length';
}
Reply2019-12-25
Powered by Sairin