The implementation of forEach loop is not compatible with promise and async functions. Use a for loop to work around this limitation.
substring() returns the characters of a string from a starting index to an end index, substr() on the other hand, returns an n number of characters from a starting index.
What is the difference between bind(), apply(), and call()? Let's start with a quick summary of .bind(), .apply(), and .call(), with this object: