HR Schedualed technical interview with kamran manzor
props drilling in reactjs, contextApi, Hoisting
correct this
const obj = {
name: 'Charlie',
greet() {
console.log(this.name);
}
};
const greetFn = obj.greet;
greetFn();
2nd question
let numbers = [3, 1, 4, 4, 5, 6, 4, 3, 3, 3, 7, 8, 3];
console.log(mostFrequentNumber(numbers)); // Output: 3