Warning: Cannot modify header information - headers already sent by (output started at /home/content/35/11701135/html/techsith/index.php:2) in /home/content/35/11701135/html/techsith/wp-content/plugins/wp-cerber/cerber-load.php on line 745

Warning: Cannot modify header information - headers already sent by (output started at /home/content/35/11701135/html/techsith/index.php:2) in /home/content/35/11701135/html/techsith/wp-content/plugins/wp-cerber/cerber-load.php on line 745

Warning: Cannot modify header information - headers already sent by (output started at /home/content/35/11701135/html/techsith/index.php:2) in /home/content/35/11701135/html/techsith/wp-content/plugins/wp-cerber/cerber-load.php on line 745

Warning: Cannot modify header information - headers already sent by (output started at /home/content/35/11701135/html/techsith/index.php:2) in /home/content/35/11701135/html/techsith/wp-content/plugins/wp-cerber/cerber-load.php on line 745
Blog - TECHSITH = Technology Simple Intuitive Tutorial Home

TECHSITH = Technology Simple Intuitive Tutorial Home

JavaScript Classes

JavaScript Classes

Class Keyword JavaScript uses the class keyword, which was introduced in ES2015. Prior to ES2015, you can create objects by using function constructors and prototype inheritance. There are many developers who believe that classes do not belong to JavaScript. They consider JavaScript as a functional programming language. I have heard opinions from the other side …

JavaScript Classes Read More »

prototype

Object.setPrototypeOf() Method JavaScript

There are two camps in JavaScript, one who uses function constructors to create objects and one who directly uses object literals. In JavaScript, function constructors can be extended by using the Object.create() method. This method lets you set prototype of one object to another object. Constructor2.prototype = Object.create(Constructor1.prototype); Extending Object Literals Object literals don’t have …

Object.setPrototypeOf() Method JavaScript Read More »

prototype property javaScript

JavaScript Prototype Explained

Every constructor function has a property called prototype. You can add properties and methods to it. Using a constructor function, When you create a new object, the object has access to prototype methods. Sample code: let Car = function(color) { this.color = color; }; Car.prototype.getColor = function() { return this.color; }; let redCar = new …

JavaScript Prototype Explained Read More »

javaScript function constructors

JavaScript Function Constructors

It is very important to understand how JavaScript function constructors work before we move to higher level topics of Object Oriented JavaScript. In this article, I am not going to explain about the JavaScript class constructor. Instead, I’ll explain about ‘function’ constructors. The ultimate objective of Object Orient Programming is to create objects with ease. …

JavaScript Function Constructors Read More »

HTML Style attribute

HTML Style Attribute

[embedplusvideo height=”360″ width=”640″ editlink=”http://bit.ly/XiUBHz” standard=”http://www.youtube.com/v/UR3-QUTsADg?fs=1″ vars=”ytid=UR3-QUTsADg&width=640&height=360&start=&stop=&rs=w&hd=0&autoplay=1&react=1&chapters=&notes=” id=”ep1968″ /] HTML Style Attribute Style is an attribute in HTML Attributes are nothing but key value pairs that go in the opening tag of an html element. [code language=”HTML”]<tagname key=“value”>content</tagname>[/code] In nutshell, style helps you paint HTML elements on the page. It helps you to place it in …

HTML Style Attribute Read More »

Scroll to Top