Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Aptitude | AngularJS Quiz | Set-2 | Question 7

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

Which of the following is the correct syntax for the create module in angularJs ?
(A) ar myModule= module();
(B) var myModule= new Module();
(C) angular.module(“app”, []);
(D) var Module= new Module(my);


Answer: (C)

Explanation: The module is used for defining the angular application. For creating modules in angular the syntax is used as angular.module(“app”, []); Here angular.module means it creates the application module and it takes two parameters one is “app”, the app is the name of modules and another one is the array([]) of dependent modules.

Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Last Updated : 20 Sep, 2021
Like Article
Save Article
Similar Reads