Logic Technology interview question

Hoisting, react coding , js output based questions