Javascript function

functions

A function is a block of statements, which is used to perform a specific task.In javascript functions are defined with the function keyword. There are 3 ways to create a function. 1. by declaration. 2. by function expression. 3. by constructor. (good for…

Read More »

Loops

loops

Loops Allow to repeat block code, until the given condition is true. In Javascript we have three basics types loops are available – for while do while for loop // for for (var i = 0; i <…

Read More »

Secret of falsy value

falsy_value

As we know true and false are related to boolean data type. Zero, empty string, undefined, null, NaN are falsy values. All non-empty things and true are Truthy values. But going to deep inside into falsy value. We need…

Read More »

Conditions

conditions

If, else, switch are conditional statement. Condition statement change flow of the program according to test cases. So if block contain test expression inside parenthesis. if test expression is evaluated is true then body of if executed and…

Read More »

Type detection

type_detection

Type detection It is a way by which we can identify the type of data. We know that data type can be three type. So if we are working on data sometime we need to identify datatype of…

Read More »

CSS – Positioning

positioning

HTML element bind with a force due to this reason they follow a pattern. But using css we can change that pattern. Elements have a position value of static by default and due to static position html element…

Read More »

Operators in javascript

operators

Operators An Operator is a symbol that used for specific task. That task may be related to math or logical operation. Operators works on operands. Ex-  var sum = 2 + 3; Here 2, 3 are operands and…

Read More »

Variables and data types in javascript

data-type

Variables are named memory location that holds different – different type of value. Whereas It is a classification of data which tells the compiler or interpreter how the programmer intends to use the data. In javascript we have…

Read More »

Elements

elements

Elements are foundation of every real world entity. Likewise it’s a plays big role on web. In web we have three type element. 1. Block level 2. Inline Level 3. Mixed Level ( Block + Inline ) Block…

Read More »