Menu
×
×
正确
const person = {
name: 'Jesse',
age: 30,
address: {
city: 'Houston',
state: 'Texas',
country: 'USA'
}
}
displayMessage(person)
function displayMessage({ address: { state } }) {
const message = 'I live in ' + state + '.';
}
const person = {
name: 'Jesse',
age: 30,
address: {
city: 'Houston',
state: 'Texas',
country: 'USA'
}
}
displayMessage(person)
function displayMessage({ address:{state} }) {
const message = 'I live in ' + state + '.';
}
const person = {
name: 'Jesse',
age: 30,
address: {
city: 'Houston',
state: 'Texas',
country: 'USA'
}
}
displayMessage(person)
function displayMessage({address:{state}}) {
const message = 'I live in ' + state + '.';
}
const person = {
name: 'Jesse',
age: 30,
address: {
city: 'Houston',
state: 'Texas',
country: 'USA'
}
}
displayMessage(person)
function displayMessage({address:{ state }}) {
const message = 'I live in ' + state + '.';
}
const person = {
name: 'Jesse',
age: 30,
address: {
city: 'Houston',
state: 'Texas',
country: 'USA'
}
}
displayMessage(person)
function displayMessage({address: {state}}) {
const message = 'I live in ' + state + '.';
}
不正确点击 此处 重试 正确下一题 ❯const person = { name: 'Jesse', age: 30, address: { city: 'Houston', state: 'Texas', country: 'USA' } } displayMessage(person) function displayMessage({}) { const message = 'I live in ' + state + '.'; } |