In a film JSON example 12.5 in a for loops you're trying to find length of film variable which is objects with film.length method, and because of that whole script it's not working. To make example work the length of film object should be found by using this method: Object.keys(film).length
And another issue is in the example 12.4. Script is not working until you specify which element of film object you wanna print i.e. instead of var title = film.title; it should be ... = film[0].title;
and to print information about all the films there should be a loop
In a film JSON example 12.5 in a for loops you're trying to find length of film variable which is objects with film.length method, and because of that whole script it's not working. To make example work the length of film object should be found by using this method: Object.keys(film).length
And another issue is in the example 12.4. Script is not working until you specify which element of film object you wanna print i.e. instead of var title = film.title; it should be ... = film[0].title;
and to print information about all the films there should be a loop