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!
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
Why do I keep getting this error?
$ node app.js C:\Users\Rusie\Documents\susan_treehouse\Node.js_Basics_2017\Getting_the_Respons e_Body\Stage_2_Video_4_0_start\app.js:16 let body = ""; ^^^ SyntaxError: Block-scoped declarations (let, const, function, class) not yet sup ported outside strict mode at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:373:25) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Function.Module.runMain (module.js:441:10) at startup (node.js:139:18) at node.js:968:3
I have looked over this code and can't find my mistake. What am I missing? Any help on this is greatly appreciated. Please and thank you in advance.
Here is my code:
Try adding "use strict"; at the beginning of the file