JSFiddle - React, Tailwind, and code Playground
JavaScript Object Notations
by Nalin Sajwan
JavaScript
var tesrVar = {
"a": {
"b": {
"c": {
"d": {
"e": "Done"
}
}
}
}
};
// 2 - Ways
// Dot Notation
console.log("Dot notation ---> ", tesrVar.a.b.c.d.e);
// Bracket Notation
console.log("Brackert Notation ---> ", tesrVar["a"]["b"]["c"]["d"]["e"]);