Recent Posts

Optional chaining (?.) in JavaScript Examples

What is the use of ?. operator in Javascript. Using ? with variables and objects in javascript codes....

Fix: Cannot read properties of null (reading ‘map’)

React JS map function throwing error cannot read properties of null solution. How to fix map function null...

Javascript: Variable undefined and no value / empty variable

Empty variable example in Javascript. Undefined variable example in Javascript. How to declare a variable with no value...

JavaScript: Check if null variable, object

How to check if a variable is null in JavaScript? How to check if an object is null...

Javascript Interview Questions, Solutions, Notes

The latest Javascript interview questions. Mostly asked interview questions in Javascript with answers and notes. Popular JS interview...

Javascript String Methods – CheatSheet

JavaScript cheatsheet containing all the string manipulation functions. Manipulate the js strings using the string functions in Javascript....

Composition in React JS – Example

Example of composition in React JS App. Adding children for a React component. Rendering component children using props.children...

React JS: API Data fetching Example Code

How to fetch data from an API in React JS. Get data from REST API in React JS...

CSS Selectors: Target child element inside class CSS

How to add style to elements inside a CSS class. Add style to the child element inside a...

Javascript Basics – For Learning & Interview Preparation

Learn the basics of Javascript with examples. It is very important to have a good basic foundation to...