1. How do you find the occurrence of a character in a string using JavaScript?
2. What is the time complexity of binary search?
3. If you have to complete a target on the weekend and at the same time you have to attend a family function, what would be your preference?