Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Jason Pallone
Jason Pallone
11,340 Points

Would you make an edit button in express?

Can express/node make edit buttons? Like for example a edit button that edits a span, so you need to get a new input element and then insert the content of the new input element into the new span element to save what the user enters. Like in the DOM scripting by example video. Would you only do this with frontend JS, or would you do this in express if you're building a fullstack app?

1 Answer

Andreas Nyström
Andreas Nyström
8,887 Points

Not exactly sure what you're asking for. I would do it on frontend as there is no use of doing it on the backend. Maybe the answer is different if you're rendering html server-side.

Why do you want to do it on backend?