I'm watching a tutorial and I tried running the following code but it doesn't run.
var person = {
'address': {
'street': 'Rose Road',
'city': 'somewhere',
'state': 'CA'
},
'isfromState': fucntion(state) {
return (this.address.state === state);
}
}
console.log(person.isfromState('blah'));
Instead, it gives me this error Exception: SyntaxError: missing } after property list and I can't find the mistake.