Month: August 2018

What is reactive form in angular 4?

reactive form

There are two ways to create forms in angular 4. First is Template Driven and second reactive form. In this post, I am going to discuss Reactive Form. Template Driven This is the easiest way to create a form in angular to bind data. In this method, you need to usengForm and ngModel direcitve to bind data. Example

Reactive Form Reactive forms provide a model-driven approach to handling form inputs whose values change over time. This guide shows you how to create and update a simple form control, progress to using multiple controls in a group, validate form values… Read More

Read More »

Tricky javaScript interview questions

javascript-interview-questions-answers

Here I am going to discuss some really tricky javaScript interview questions. 1. What will be the output of the below code?

Ans. This is the really tricky javaScript interview question for JavaScript developer. The output of this code will be 1undefined because here we have function statement function fun(){} inside if so it returns true. And here fun is function expression not a function statement, therefore, it will be undefined here. 2. Write a single line statement to remove all duplicate elements from below given array or any array

Ans. To answer this question, I am going… Read More

Read More »