JavaScript Object Notation

This post is continuation of the series of posts on Modular approach in JavaScript

First and foremost thing we have to understand is the style JavaScript modular code can be written in. Its called JavaScript Object Notation (JSON). Everything in Javascript is an object and writing thing in an object notation makes is easy to ready and write lengthy code.

JSON is a lightweight data interchange format.

For further details visit https://www.json.org

The purpose of introducing JSON in the beginning of the tutorial is to get familiar with the style of writing JavaScript code we will be following through out our tutorial.

Here is an example how we can declare an object using this notation.

Comments