AngularJS AngularJS MCQ Question #7754
Single Choice Easy

QWhat is a directive in AngularJS?

ID: #7754 AngularJS MCQ 183 views
Question Info
#7754Q ID
EasyDifficulty
AngularJS MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A A way to declare variables in AngularJS
  • B A way to create new modules in AngularJS
  • C A way to extend HTML in AngularJS
  • D A way to add comments to HTML in AngularJS
Correct Answer

Explanation

Answer: C) A way to extend HTML in AngularJS

Explanation: A directive in AngularJS is a way to extend HTML by creating custom HTML elements or attributes with new functionality. Directives are a powerful feature of AngularJS that allow developers to create reusable and modular code.

Share This Question

Challenge a friend or share with your study group.