Build a Shape Manager - Step 41

Tell us what’s happening:

I am not sure what I am doing wrong but test 5 keeps failing.
5. Your value variable value should be set to the value of the target.

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: index.ts */
// User Editable Region


function handleInput (e: Event){
  const value = Number(e.target as HTMLInputElement);
 
}

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36

Challenge Information:

Build a Shape Manager - Step 41

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-shape-manager/6915a0e270dd52416cd4ae5a.md at main · freeCodeCamp/freeCodeCamp · GitHub

Your code is trying to convert e.target into a number. But e.target refers to the entire element, not its value.

I figured it out. thank you!