We all know DOM is a “Document Object Model”.who worked in the browser. Normally as we can see, when we interact on our site, the Dom is reloading everything in our site and it takes some time for rendering. that’s why it’s not very efficient. to solve this problem react can go a…
Two types of Number:
The latest version of ECMAScript released a new numeric type, which is “BigInt”. Before then, we just knew the “Number” type. Like, integer, float, double are the number type…
let str = "I'm learning web development.";
let index = str.indexOf("e");
//output: "I'm l'e'arning web development. from the beginnig is 5."
2. lastIndexOf(): The lastIndexOf() method is used to get the index of the last occurrence of specified characters in a string. indexOf()…
Answer: The major features of React are:
Answer: A React Element is what gets returned from components. It’s…
Answer: The difference between
==(abstract equality) and
===(strict equality) is that the
== compares by value after coercion and
=== compares by value and type without coercion.
Rules of implicit coercion :
Answer: When an event is triggered from an element, the event handler/event listener tied…
1 . Define Semantic elements in HTML .
Ans: Semantic HTML elements are those that clearly describe their meaning in a human- and machine-readable way. Elements such as <header>, <footer>, and <article> are all considered semantic because they accurately describe the purpose of the element and the type of content that is inside them.
2. Why meta tags are used in HTML?
Ans: Meta tags in HTML are used by the developer to tell the browser about the page description, author of the template, character set, keywords, and many more. …
Junior Web Developer