re: An Absolute Beginner Learns React, Part II VIEW POST

VIEW FULL DISCUSSION
 

That comma wasn't a typo - Javascript (like many scripting languages) allows a comma at the end of a list like that. It's great for when you add another item to the list (or, in this case, another property to an object). Python, which you probably did a bit of in Physics, allows the same.

It's a bit of an odd case, because JSON - which is Javascript syntax, after all - doesn't allow it.

code of conduct - report abuse