⊗jsOpPrTx 55 of 60 menu

Text Class in OOP in JavaScript

Make a class Text that will perform some manipulations on text. Let the text be passed as a constructor parameter.

Make a method that will return the number of characters in the text.

Make a method that will return the number of letters in the text.

Make a method that will return the number of spaces in the text.

Create a method that will return the number of characters in the text minus spaces.

Make a method that returns an array of words.

Make a method that returns an array of sentences.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline