DEV Community

loading...

Discussion on: Challenge: Get Closest Number in an Array

Collapse
maeganwilson_ profile image
Maegan Wilson

I probably over complicated it, but here's a CodePen link with how I did it in JS and outputted it to the HTML side.

Collapse
andy profile image
Andy Zhao (he/him) Author

Long as you solved it! 👍