Author: ShairyPortfolio

  • Use of Let, Var and Const on JS

    Use of Let, Var and Const on JS

    We use Var keyword in declaring the variable and the scope of the variable is either global or local. The scope of the variable is global if we declare the variable outside of a function otherwise local if declare the variable inside a function. Like this:                         <script>                                     var a=10;                                     var a=100;                                    …

  • Inheritance Task in JS
  • Task using OOPS  & DOM in JS

    Task using OOPS & DOM in JS

    Task for HTML Create a empty div with class name result Create a button with class name btn and apply onclick event here with output function Task for DOM Find the above result and btn class using query selector method Task for OOPS Create a class with name Demo that contain 2 function with person…

  • Task using OOPS

    Task using OOPS

    Write a JS function that display the bio data (firstName, LastName, age,email) of 3 Persons as shown in table Person First Name Last Name Age Email Person 1 Shairy Kalra 32 er.shairykalra@gmail.com Person 2 Etudepro Person 3 Dummy Name 25 Solutions: