JavaScript is a broad language but there are some common things that are often asked in the interview. Today I will discuss some intermediate javascript concepts with you.

Image for post
Image for post
  1. Truthy and Falsy values:

When the value is Number.

If the value of a variable is greater than zero then if-statement will return it as true and if the value of a variable is zero then the if-statement will return it as false. For example:

const numbers = 12

if (numbers) {

console.log(‘condition is true’)

} else {

console.log(‘condition is false’)

}

// Output is ‘condition is true’

const numbers = 0


Today we are going to discuss basic react fundamentals that you should know very closely.

Image for post
Image for post
React Fundamentals
  1. Concept of virtual DOM:

In modern web development, DOM is crucial to understand. Modern Javascript DOM stands for the document object model, it is mainly used to create nodes using javascript. Nowadays, DOM is the heart of the modern interactive web.

if I want to describe virtual DOM then I would say virtual DOM is simply a representation of a JavaScript DOM object like a lightweight copy.

virtual DOM object has the same power and has properties and methods like DOM object. but virtual DOM…


Today I am going to share with you three advanced javascript concepts. Let's see what is in the content.

  1. try and catch:

try and catch are the interesting syntax of javascript. When you call a function and execute output from it, if there is no type of match then the output will stop executing continue and It will freeze on error.

On the other hand, If you use try and catch inside a function, your function will be continuously executed with the error. Look at the example below:

// Normal function

const convertToTK = (dollar) => {

if (typeof dollar…


You know that javascript is the most confusing programming language so today I am going to talk about 10 common javascript methods that can confuse you from time to time. Check it below

Image for post
Image for post
  1. chaAt:

charAt is the pre-define function of javascript when you try to find a specific character from a string, the chaAt function will find it by giving it index value. One thing you should keep in mind is that indexing in javascript starts at zero.

const speech = ‘Dhaka is the capital of Bangladesh’

const index = 6

console.log(`the character at index ${index} is ${speech.charAt(index)}`)

The output…

Ringku Rahman

Self-taught frontend developer

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