11. How can you add an HTML attribute to an HTML element using JavaScript?

  • By invoking the setAttribute method on a given element.
  • By invoking the getAttribute method on a given element.
  • By invoking the createAttribute method on a given element.

12. True or false? Using the npm init -y command you can initialize a new project with npm with all the prompts answered with a 'yes'.

  • true
  • false

Leave a Reply