How many commas are detected in the js string?

for example, the string adas, in this paragraph is big. There are Chinese and English commas in asdasda,asda. It is a bit troublesome to use indexOf. Can the rule be detected? please give an example

.
let  str = "adas,asdasda,asda"
str.indexOf()
Mar.29,2021

the simplest

let str = "adas,asdasda,asda";
console.log(str.split(',').length)

let matched = 'adas,asdasda,asda'.match(/,|/g) || [];
// _> matched.length
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3bb0b-2aff8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3bb0b-2aff8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?