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)

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Mohammad Anisul Islam
Mohammad Anisul Islam

Written by Mohammad Anisul Islam

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

No responses yet

Write a response