Im trying to pull the gpa numbers from the array that is in the object and have them displayed in the console but my code keeps giving me undefined '0' error. Any help would be appreciated.
var fsInfo = {
name: 'John Doe',
address:{
street: '123 Some Street ',
city: 'Town, ',
state: 'HI',
gpa: [3.0,4.0,2.0]
}
}
console.log("GPA: " + fsInfo.gpa['0'],fsInfo.gpa['1'],fsInfo.gpa['2'])