Top Necessary Things You Must Know in Javascript

Mohammad Anisul Islam
1 min readMay 5, 2021

A noob can learn and practice JavaScript without large hassle and effort. Despite being a lightweight scripting language, JavaScript is both object-oriented and cross-platform. It is always important for beginners to know some of the most important components of JavaScript.

  1. Variables

Variable is the very initial thing in every programming language. In javascript variable is declared by the “var” keyword; though it changed in modern javascript into “const” and “let”. But initially, var keyword is applied for initiating a variable.

In JavaScript, variables can represent and manipulate with 3 primitive data types, i.e., string, numbers and Boolean.

var x;
var name = 'Mr. y';

2) Operators

You can use four types of operators in Javascript.

They are,

  1. arithmetic [+, -, *, /, %, ++ and — ]
  2. comparison

a. == (equal)

b. != (not equal)

c. > (greater than)

d. < (less then)

e. >= (greater than or equal to)

f. <= (less than or equal to)]

3. logical

a. && (logical AND)

b. || (logical OR)

c. ! (logical NOT)

--

--

Mohammad Anisul Islam

Software Engineer || Full Stack Developer || Technical Writer || Speaker