marcwan / LearningNodeJS

Source code to accompany my book, "Learning Node.JS"
280 stars 245 forks source link

Chapter 2 - String functions - Page 28 #26

Closed MisterH closed 7 years ago

MisterH commented 7 years ago

Hi Marc,

I spotted a typo on P28 in the string functions section it says "to extract a substring from a string, use the substr or splice function..."

It should say "...slice function."

Totally minor issue, the code beneath is correct :)

Cheers,

Rob

marcwan commented 7 years ago

Thanks for that! I'll try to update for any future printings!!