Practice how to return a sub-string from a string in JavaScript

JavaScript logo JavaScript Online Editor