70
rated 0 times
[
73]
[
3]
/ answers: 1 / hits: 17773
/ 14 Years ago, sat, november 6, 2010, 12:00:00
It is said here:
any quotes inside the JSON have to be
“escaped” with a backslash in front.
Otherwise, JavaScript gets confused
about which quotes we want for display
and which quotes are part of the
programming.
but in their code snippet I can't see any escaping character is this tutorial buggy I'm confused ? :
var movielisttext = {movielist: [Friday the 13th, Friday the 13th Part 2, Friday the 13th Part III, Friday the 13th: The Final Chapter, Friday the 13th: A New Beginning]};
My question is specifically if their article has an error or not because it amazes me that a tutorial for beginner can embed such error.
More From » javascript