×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

Write a statement with <div> element to initialize two variables (name and age)?

20. Write a statement with <div> element to initialize two variables (name and age)?

  1. <div ng-app="" ng-init="Name:'Alex';Age:21">
  2. <div ng-app="" ng-init="Name:'Alex',Age:21">
  3. <div ng-app="" ng-init="Name='Alex',Age=21">
  4. <div ng-app="" ng-init="Name='Alex';Age=21">

Answer: D) <div ng-app="" ng-init="Name='Alex';Age=21">

Explanation:

The correct statement to initiate the variables:

<div ng-app="" ng-init="Name='Alex';Age=21">

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.