Posts by Abhishek Swaminathan

Author Biographical Info: Not available

JavaScript: Making class variables ‘private’

By Abhishek Swaminathan

In this post, we shall look at a technique to make members of a JavaScript class private. Background Consider object-oriented languages like C++ and Java. Both languages have the c.... Read More

JavaScript: Creating a spinner that spins when hovered on

By Abhishek Swaminathan

In this post, we are going to create a spinner for our browser. We will be using HTML and CSS for the styling, and JavaScript to handle the animation and behaviour. Our requirement.... Read More

JavaScript: ‘Running text’ backdrop on canvas

By Abhishek Swaminathan

In this interesting post, I will show you how you can get the effect of ‘running text’ as a backdrop using the canvas element in JavaScript. What is meant by ‘Run.... Read More

JavaScript: Functions in the Object Model

By Abhishek Swaminathan

In my previous posts, we have learned about the JavaScript Object Model using prototypes. We have created our own classes and seen how inheritance works. We have also understood th.... Read More

The Javascript Prototype in action: Inheritance

By Abhishek Swaminathan

In my previous posts, we have learned about the Javascript Object Model and how to create classes using prototypes. In this post, we shall build upon our previous knowledge and app.... Read More

The Javascript Prototype in action: Creating your own classes

By Abhishek Swaminathan

In my previous post, I had briefly introduced the concept of the Prototype in Javascript. In this post, we are going to learn how to use it with a practical example. We are going t.... Read More

An introduction to Javascript Functions

By Abhishek Swaminathan

This post is a basic introduction to functions in Javascript. It demonstrates how functions in Javascript can be used like objects. What is a function in Javascript? A Javascript f.... Read More

An introduction to the Javascript Prototype

By Abhishek Swaminathan

This post is to introduce you to the concept of the Javascript Prototype with the corresponding understandable code snippets. Object-oriented languages like C++ and Java have a mec.... Read More