JavaScript: Getting a Uncaught ReferenceError: Cannot access 'title' before initialization
I am newbie to JavaScript. Here’s the sample code. let options = { title: "Menu", width: 100, height: 200 }; console.log(options.title); let {title, width, height} = { options:title, options:width, options:height}; // clause 1 I am getting Uncaught ReferenceError: Cannot access ‘title’ before initialization on clause 1. Why? The object options is initialized and hence i… Read More JavaScript: Getting a Uncaught ReferenceError: Cannot access 'title' before initialization