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 Interpolation

Can Interpolation be used in a node.js project as well?

I'm currently practicing Node.js and most of the things we do in regular javascript can be used when writing node.js and I was just wondering if perhaps interpolation could also be used in one of our js files in a node.js project or would there be extra step that have to be taken?

1 Answer

Steven Parker
Steven Parker
230,024 Points

Sure, you can use interpolation with node.js.

As long as your version of node.js supports ES6/ECMA2015 (any recent one will), that will be one of the available features. No "extra steps" involved.

Thanks :)