How to test kolichesvto of characters in the string?

Please tell me how to check the number of characters and if they are for example more than 6 to attachit a new class of floating point is also considered a symbol?
July 2nd 19 at 14:12
2 answers
July 2nd 19 at 14:14
the point is also considered a symbol
July 2nd 19 at 14:16
[]'num'), function(element) {
 if (element.textContent.length > 6) {

Find more questions by tags jQuery