SMSinchana M Sinsinchanams.hashnode.dev·Jun 10, 2022 · 6 min readvar, let, and const - The Three MusketeersIntroduction In JavaScript, you might have seen the variables being declared using the keywords var, let and const. This can be confusing to understand when to use each or how one is different compared to the other. Although the three keywords have s...00
SMSinchana M Sinsinchanams.hashnode.dev·Jun 10, 2022 · 4 min readUnderstanding call, apply and bind methods in JavaScriptIntroduction In JavaScript, almost everything is an object. An object can have methods - a function that is a property of the object. const user = { firstName: "Alicia", lastName: "Keys", greet: function () { alert("Hello!"); } }; user.g...00
SMSinchana M Sinsinchanams.hashnode.dev·Jun 10, 2022 · 5 min readUnderstanding async and defer attributeWhen you want to run the same JavaScript on several pages of your website, you create a separate external JavaScript file with the .js extension and add it to your HTML file using the <script> tag and refer to it using the src attribute like so: <scr...00