JSFiddle - React, Tailwind, and code Playground

by Norlihazmey Ghazali

JavaScript

var m = '120.500.66';

var k = m.match(/\.+/ig);
alert(k.length)