You have heard about Uppercase and Lowercase, right?
But probably you haven't heard about Snake case
Not a problem if you haven't, today I am going to talk about that in this article...
Let's gets started,
Snake case is a special styling of writing in which each space is replaced by an underscore
How to implement SNAKE CASE in JavaScript
const snake = text.replace(/\s/g, '_');
Check out the live demo - codewithsnowbit.github.io/snakefy
Thank you for reading!
- Make sure to follow me on Twitter - @codewithsnowbit
- Subscribe to me on YouTube - Code With SnowBit
ย