- React Interview 18 June 2020 * **********************************************************
let num=0;
async function increment(){
num+=await 2;
console.log(num);
}
increment();
num+=1;
console.log(num);
console.log('hi');
setTimeout(()=>console.log('there'),5000)
console.log('You')
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)
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)
Top comments (0)