Hello Friends 👋,
Welcome To Infinitbility! ❤️
.toString() method to convert any datatype to string datatype, and today we are going to
For now, we create first on num veriable and store number on it and check their datatype.
For number to string conversion, we are using
num.toString(); method and re-console string value and their datatype.
1let num = 78;2console.log(num, typeof num);34let str = num.toString();56console.log(str, typeof str);
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.