Hi Friends 👋,
Welcome To Infinitbility! ❤️
"" empty string to the variable. it will remove the previous value and store a new value which is a string.
Here, we will do
- Create a sample string variable with data.
- assign an empty string to the variable
1// Create sample string variable with data.2let str = "infintbility";34console.log("Result 1: ", str)56// assign an empty string to the variable7str = "";89console.log("Result 2: ", str)
I hope it helps you, All the best 👍.
Follow me on Twitter
Join our email list and get notified about new content
No worries, I respect your privacy and I will never abuse your email.
Every week, on Tuesday, you will receive a list of free tutorials I made during the week (I write one every day) and news on other training products I create.