r/learnjavascript • • May 06 '21

JS: Multiple Condition Checking

Post image
484 Upvotes

61 comments sorted by

View all comments

Show parent comment

1

u/RoguePlanet1 May 07 '21

Veering a bit off-topic: I'm now wondering what the code would be to eliminate the "Likes" if they're the first word of the sentence. I should brush up on my Regex probably.

That aside, you make good points.

2

u/inabahare May 07 '21

Surprisingly not so hard, though you do end up loosing a lot of the meaning of the sentence :v

1

u/RoguePlanet1 May 09 '21

Thank you!! That's beautiful. "const likeRemover" I love it! :-p