Category Archives: JavaScript

Understand closures in javascript


Let’s learn closures today, How closures are define how they got intialize and how they work A closure is a function within a function that has access to the environment that it was created, which gives the ability to access … Continue reading

Posted in AJAX, Functional Programming, JavaScript, jQuery, Scala, Web, web application | Tagged , | 1 Comment

Validations for Template-driven forms in Angular 4


Prerequisite : Basic understanding of Angular 2/4 First of all, we need to create a simple form in Angular. You can clone this repository for the example. We’ll continue further with this example. This is the form that we have … Continue reading

Posted in Angular Material, AngularJs2.0, JavaScript | 1 Comment

When I took Angular 2 to build my Application


When I took Angular 2 to build my application, I still had my doubts to go with Angular 2 or some other framework. But after some research, I decided to go with Angular 2. It gives the ability to make … Continue reading

Posted in Angular Material, Angular Strap, AngularJS, AngularJs2.0, JavaScript, web application | Tagged , , | 4 Comments

Hello React #2: Smallest Example in React


Hello Folks, In our previous blog post – Hello React #1: Creating a Single Page Application with React, we saw how to create a SPA with React. But, we didn’t got into its details. Here is the link for a … Continue reading

Posted in HTML, JavaScript, React, ReactJS | Tagged | Leave a comment

Hello React #1: Creating a Single Page Application with React


Few days ago we were looking for a JavaScript library which is flexible and can be used in a variety of projects. Basically, something with which we can create new apps, or introduce into an existing project without rewriting it. However, we came … Continue reading

Posted in JavaScript, Node.js, React, ReactJS | Tagged , | 1 Comment

Object Oriented JavaScript: Polymorphism with examples


Again this is not the advance topic of JavaScript but it relies under Object Oriented JavaScript & polymorphism is one of the tenets of Object Oriented Programming (OOP), we all know what is Polymorphism from other languages (like C#, Java … Continue reading

Posted in JavaScript, Scala | Tagged , , , , | 2 Comments

Understanding “this” in JavaScript


Function in javascript have properties, Just like javascript Object have properties. And when function get execute, It get the this property Lets Take a closer look at “this”. this is a special character/keyword in javascript, As we know working with … Continue reading

Posted in AJAX, AngularJS, AngularJs2.0, HTML, JavaScript, jQuery, knoldus | Tagged | 10 Comments

A Simple Example using elm


In this blog, we will see how to build a simple application using elm. Elm is a functional language that compiles into javascript with following features:- 1)  Great Performance 2)  No run-time exception 3)  Javascript Interop 4)  Friendly error message … Continue reading

Posted in AJAX, Functional Programming, HTML, JavaScript, knoldus, Web, web application | Tagged , , , , , | Leave a comment

Prototype & Prototype chaining with Object Oriented JavaScript


We have always seen that every object in JavaScript has some pre-defined methods.  To know about it we have find answers of these questions. What is prototype ? What is prototype chaining ? What does hasOwnProperty do ? What is … Continue reading

Posted in JavaScript, Scala | Leave a comment

Functional Programming In Javascript


Knoldus organized a knolx session on the topic : Functional Programming In JavaScript. Covers the Functional Programming Paradigm In JavaScript. You can watch the video of session:   You can check slides as well.   Thanks !!    

Posted in Functional Programming, JavaScript, Scala | Tagged , , , , , , , , | Leave a comment