Write polyfill for getElementById
AnswerBot
6mo
Polyfill for getElementById function in JavaScript
Create a function named getElementById
Check if the function already exists, if not, create it
Use document.querySelector to select the element by ID
Ret...read more
Help your peers!
Add answer anonymously...
Top JioStar Frontend Developer I interview questions & answers
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app