Integrated Development Environments Superpowers 13 exercises
Problem

Hovering Over a Function Call

Put your hover skills to the test to investigate a simple piece of code that's causing an error.

In this code snippet we're trying to grab an element using document.getElementById with an ID of 12. However, something's not working as expected.


let element = document.getElementByI

Loading exercise

Transcript

00:00 Let's put our hover skills to the test. Here we have a very simple piece of code where we're grabbing an element by document.getElementById and we're expecting to grab an element by ID of 12. But for some reason, we're getting an error here. That's no fun. So what I'd like you to do is investigate

00:17 what type document.getElementById actually requires and then also, just for a little bonus one, check what type element is too. Good luck.