Angularjs interview questions

 

angularjs interview questions

Angularjs interview questions

 

What is dom?

Dom means document object model is representation of html web page in objects relationship model.

Java scripts manipulate HTML elements in the help of DOM methods.DOM can access Html elements ID’s   class, tag names to and modify and delete Html elements.

It can set CSS properties values.

 

2.How methods we have to access DOM elements?

The three main DOM methods to access Html elements.

1.get Element BY ID()

2.get Element BY class()

3.get Element BY TagName()

3.2+4+”3″?

63

 

4.What is use of number?

Number function is used convert a value of character to number format in java script

5.print 2 4  6 8 10 12 ?

<script>

n=2;

For (i=2;i<=2;)

{

document.write (i);

i=i+n;

}

</script>

 6.what is the function?

Function is a block of code which contains JavaScript statments with a specific name and optional arguments

Ex:

<script>

Function Hello()

{

Document.write(Hello);

}

</script>

7.Difference between the while and Do-while and For?

While

This loop is used to execute the statement when condition is true

Ex:var i=10;

While (i=<10)

{

Document.write(i+”<br>”);

I+

}

Do-While

This loop is used to execute the statement when the while condition is true

Var i=11

{

do

Document.Write(i+”<br>”);

I++;

}

while(i<=10)

 

For

This is used to execute the statement when the condition satisfies.

It enter only when condition is satisfie.


8.print Following

1

1 2

1 2 3

for(i=1;i<=3;i++)

{

For(n=1;n<=i;n++)

{

Document.write(n);

Document.write(“<br>”);

}

 

9.print odd numbers upto 20 using for and while loop?

for(i=1;i<=20;i++)

{

Document.write(i+”<br>”);

}

angularjs training in hyderabad:-

Kosmik Technologies provides AngularJs training in Hyderabad. we are providing real time training and hands on experience in all concepts.

 

Angularjs  introduction

 

Angularjs introduction

Introduction to Angularjs:–

AngularJS Introduction AngularJS is a JavaScript framework.Architecture, Advantages Angularjs Architecture Diagram.User events trigger the functions which are stored inside your controller. The user events are part of the controller.

What is angularjs ?

  • Angularjs is a client side (browser side) technologies,which is developed by google & Framework of Javascript.
  • By using Angularjs we can decrease burden at server side so applications most reliable increase  speed, secure, code reusable.
  • using angularjs ,we can develop SPA.spa –> single page application. Even gmail is also a single page application. it means content will asynchronously.

Version of angularjs?

  • Current version–> angular 6.x
Versions

Angulajs1

Angulajs2

angulajs3

angulajs4

angulajs5

angulajs6

Is platform Dependent?

Using angular js , we can develop hylorid application. It means, which will work in different platforms like

Web app

Android

IOS

Window

blackberry

Easy to test -> Karma, jasmine, protractor.

Difference b/w angularjs & angular :–                                             

Angularjs 

  • angularjs is working with js
  • If will work with “CDN”
  • If don’t sperit folder structure
  • specially web app development
  • SEO friendly
  • works with Es5

Angular

  • angular is working with typescript
  • To install angular project,we node node package (npm)manage
  • Angular is well developed,and have good folder structure & Excellent work flow
  • mobile app & web application development
  • more seo friendly than angularjs
  • works with Es6
Important points:                           
  • angular has better performance than angularjs
  • angularjs more testable
  • React js is competitor to angular.
Difference b/w angular & React:–

Angularjs

  • Angularjs developed by google.
  • Javascript framework
  • Supports two-way data binding
  • Works with js and html
  • Current version is angular 6
  • Using angular we can develop hybrid application.using Ionic frame.

Reactjs

  • Reactjs developed by facebook
  • Javascript framework
  • Supports one-way data binding
  • Works with js and js a
  • Current version is react js 16
  • Using reactjs we can develop mobile application.using react native.

Click here: For  AngularJS Interview Questions and Answers