Javascript is the most important and powerful programming language for web development.We can use others programming language but to me javascript is the easiest of them to make any kind of web based project.

I will discuss some basic of javascript -

Truthy vs Falsy values

In JavaScript, if/else statement checks if a value is truthy or falsy. A truthy value is like true and a falsy value is like false.Here are some example -

Double equal (==)

== in JavaScript is used for comparing two variables, but it ignores the datatype of variable.The == checks for equality only after doing necessary conversations.

Triple equal (===)

=== is used for comparing two variables, but this operator also checks datatype and compares two values.If two variable values are not similar, then === will not perform any conversion.

Understanding scope

Block scope is within curly brackets.

Global variable, Local variable

Find the largest element of an array

Remove duplicate item from an array

Count the number of words in a string

Reverse a string

Calculate Factorial in a Recursive function

That’s all for today…

Web developer(reactJS)