My Recent React JS Interview

pratham0182

Prathamesh Patil

Posted on June 18, 2021

My Recent React JS Interview

  • React Interview 18 June 2020 * **********************************************************
let num=0;
async function increment(){
num+=await 2;
console.log(num);
}
increment();
num+=1;
console.log(num);
Enter fullscreen mode Exit fullscreen mode

console.log('hi');
setTimeout(()=>console.log('there'),5000)
console.log('You')
Enter fullscreen mode Exit fullscreen mode

cont
let
var



let arr = [1,2,3,4,5];

for(var i=0 ; i < arr.length ; i++){
    arr[i] = arr[i]++;
}

console.log(i)
Enter fullscreen mode Exit fullscreen mode

ans output and why


let newArray = [1,2,3,4,5];

1) Increment 1 in the smallest and largest element.


-Difference between state and props
-To to pass props from child to parent
-What if i tried to push a value in const array
-Optimising Apps
-Webpack Bundle - create a build file for each file in proj
-event loops in js


Scenarios
- handling auth tokens
- handling user with different permissions.
- create a project to list an employee from api with onclick of user should redirect to specific user.(Explain whole design)

๐Ÿ’– ๐Ÿ’ช ๐Ÿ™… ๐Ÿšฉ
pratham0182
Prathamesh Patil

Posted on June 18, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

ยฉ TheLazy.dev

About