For the Template String example, the line with the template string needs to be wrapped in back ticks instead of single/double quotes or it won’t parse.
The Object.Assign example has a similar issue. object needs to be Object or else it'll throw a reference error. Same with the promise example. 🤦♂️ ...In fact, there are a lot of examples here missing closing quotes or with improper casing which will throw errors.
For the Template String example, the line with the template string needs to be wrapped in back ticks instead of single/double quotes or it won’t parse.
Unless you want it to output
'Hello ${name}'
😉The
Object.Assign
example has a similar issue.object
needs to beObject
or else it'll throw a reference error. Same with thepromise
example. 🤦♂️ ...In fact, there are a lot of examples here missing closing quotes or with improper casing which will throw errors.Thanks for the correction I will fixed that.😊
I think the multi-line string example needs back ticks too, and the example code string is showing for me as one line.
Thanks for editing those other examples.
Thanks for the correction:)