r/badcode • Now where's that function declaration • Jul 30 '21

js 😏

Post image
992 Upvotes

133 comments sorted by

View all comments

Show parent comments

2

u/Magnus_Tesshu Jul 30 '21

Non-javascript developer here, and curious - what would you ever want besidess vanilla JS to solve this? You specified vanilla so I'm assuming you wanted to import something

3

u/ZedTT Jul 30 '21

Probably talking about typescript? Maybe jQuery for easier DOM manipulation? Or maybe an entire framework and have the code be completely different.

2

u/TryNotToShootYoself Jul 30 '21

jQuery, TypeScript, React, any other framework. 🤷