daikiki@lemmy.world to A Boring Dystopia@lemmy.world · 1 month agoMaybe I'll just switch back to hotbotlemmy.worldimagemessage-square69linkfedilinkarrow-up1293
arrow-up1293imageMaybe I'll just switch back to hotbotlemmy.worlddaikiki@lemmy.world to A Boring Dystopia@lemmy.world · 1 month agomessage-square69linkfedilink
minus-squarejtrek@startrek.websitelinkfedilinkarrow-up6·1 month agoThere are so many better tools for this kind of thing.
minus-squareMwa@thelemmy.clublinkfedilinkEnglisharrow-up1·edit-21 month agolike what? plus i tend to use a search engine more often if i can find what i want.
minus-squarejtrek@startrek.websitelinkfedilinkarrow-up3·1 month agoFor counting letters in a word? That’s like a one line expression in Python or JavaScript (and other languages). JavaScript console is right there in your browser.
minus-squareMwa@thelemmy.clublinkfedilinkEnglisharrow-up1·1 month agoif javascript can do it,tell me how to do it?
minus-squarejtrek@startrek.websitelinkfedilinkarrow-up3·edit-21 month ago const countOfT = (word) => word.split('').filter(i => i === 't').length countOfT('colonialism') 0 countOfT('this is an example sentence') 2 There’s probably a more elegant way to do it.
minus-squareMwa@thelemmy.clublinkfedilinkEnglisharrow-up1·1 month agonice to know that does not need AI ig
There are so many better tools for this kind of thing.
like what?
plus i tend to use a search engine more often if i can find what i want.
For counting letters in a word? That’s like a one line expression in Python or JavaScript (and other languages). JavaScript console is right there in your browser.
if javascript can do it,tell me how to do it?
const countOfT = (word) => word.split('').filter(i => i === 't').length countOfT('colonialism') 0 countOfT('this is an example sentence') 2There’s probably a more elegant way to do it.
nice to know that does not need AI ig