This exercise should allow the use of ES6 string interpolation in the displayFuelCapacity() function. I tried this and it forced me to use concatenation (+) instead.
Agree, the entire lesson is unnecessarily strict on syntax. Suggest relaxing for alternative methods to solve the given problems according to the users own methods and not those imposed by CC.
Intermediate JavaScript Modules needs to be redone. This lesson precompletes the entire code that corresponds to the instructions for me + the code doesn’t allow to write ES6 Syntax which is much cleaner and shorter. Not good.
When doing things like this for real (as in somewhere besides this website), do you need to put the entire filepath for the file you want to import, or just the last bit like in the exercises? Also, why does the filepath start with a period for all of the ones in the examples?
Another question:
Can anyone explain to me how the anonymous function we made in this one works? Why did a function need to be put in inside the .forEach() method, and how does it know what to use for the “element” parameter? This one just tells you what to do but doesn’t explain how any of it works, so I’m kind of lost.
I believe this is standard Unix/Linux syntax to point to the current directory. (So missionControl.js and airplane.js are in the same folder on the server.)