React JS Coding Round
-
What are the optimized ways used for the loading of the website like Amazon.com or Flipkart.com if opened in incognito mode?
-
Is JavaScript Multithreaded or Single Threaded? what is event loop? is the working of JS top to down or vice versa?
-
In JS if we fetch huge data e.g. 10M record through an API and render in UI inside a table, what will break on the UI and how can we resovle it?
-
Output for
for (var i = 0; i < 10; i++) {
setTimeout(() => {
console.log(i)
}, 0)
}-
Difference between var and let keyword in JS.
-
What are closures and give an example?
-
What is Temporal Dead Zone in JS?
-
Implement +- button basically span collapse
import React, { useState } from 'react'
import './App.css'
// Root +/-
// Child 1 +/-
// Child 1.1
// Child 1.2
// Child 2
const data = {
"id": 1,
"name": "Root",
"children": [
{
"id": 2,
"name": "Child 1",
"children": [
{
"id": 3,
"name": "Child 1.1"
},
{
"id": 4,
"name": "Child 1.2"
}
]
},
{
"id": 5,
"name": "Child 2"
}
]
};
function App() {
return (
<div className="app">
</div>
);
}
export default App-
Difference between setTimeout and setInterval?
-
What is defer in HTML? Can it be used with
imgtag also?
Java Coding Round
- You are given an undirected graph with n nodes labeled from
0ton - 1, and a list ofedgeswhereedges[i] = [u, v]denotes an undirected edge between nodeuand nodev.
Determine whether the graph can be colored using exactly 2 colors such that no two adjacent nodes share the same color.
Returntrueif such a coloring is possible, otherwise returnfalse.
Comments (1)


