1. Truthy falsy

A truthy value is something which evaluates to true, for instance when checking a variable. There are many truthy values in javascript :-1, 1, " " {}, [] and true of course.

A falsy value is something which evaluates to false, for instance when checking a variable. There are only six falsey values in JavaScript: undefined, null, NaN, 0, "" and false of course.

2. Null vs undefined

Undefined : Undefined is also a primitive value in JavaScript. A variable or an object has an undefined value when no value is assigned before using it.

Null: Null as…

What is useState()?

useState() is a react hook. Hook means special function. It is changing state.

What is function?

Functions are the main “building blocks” of the program. They allow the code to be called many times without repetition.


What is a Default Parameter in a JavaScript function?

A JavaScript function can have default parameters values. Using default function parameters, you can initialize formal parameters with default values. If you do not initialize a parameter with some value, then the default value of the parameter is undefined.

  1. HTML-
    HTML is Hyper Text Markup Language. HTML is the standard markup language for documents designed to be displayed in a web browser. … HTML provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes and other items.
  2. CSS-
    CSS is a cascading style sheet. Cascading Style Sheets is a style sheet language used for describing the presentation of a document written in a markup language such as HTML. CSS is a cornerstone technology of the World Wide Web, alongside HTML and JavaScript.
  3. JavaScript-
    JavaScript, often abbreviated as JS, is…

Shaker Hossain

Engineer | Web Developer | Programmer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store