JavaScript counts the number of occurrences of substrings in a string

From , 4 Years ago, written in JavaScript, viewed 54 times.
URL https://pastebin.vip/view/06a50e3f
  1. var temp = "This is a string.";
  2.  
  3. var count = temp.match(/is/g).length;

Reply to "JavaScript counts the number of occurrences of substrings in a string"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website