https://alicloud.my.id/2024/08/18/substring-generation-in-javascript/
Substring Generation in JavaScript