DEV Community

Prathamesh Patil
Prathamesh Patil

Posted on • Edited on

1

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)

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

nextjs tutorial video

Youtube Tutorial Series 📺

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay