Infosys Interview Question

Questions were mainly based out of javaScript Asked some questions on useEffect