I am doing baby step tests whilst defining vars. I have 2 outputs to console log. The one above the var list fires fine, the one below the var list does not even fire. (If I comment our the var list then the second fires and returns the expected “undefined”).
Can someone explain this behaviour, so unexpected by me.
Pen is here: https://codepen.io/m4sterbunny/pen/GdbvMW
console.log("first push " + data.list[0]["name"]);
var tempK = Math.round(data.main.temp);
var tempC = tempK - 273;
var tempF = tempK*(9/5)-459.67;
var wind = data.wind.speed;
var location = data.list[0]["name"];
console.log("second push " + location);
console.log("first push " + data.list[0][“name”]); // returns Claremont
console.log("second push " + location); // no return