javascript to string
num.toString();
js convert variable value to string
let num1 = 10
let num2 = 4
let sum = num1 + num2
console.log(sum)
//normal result = 14
//use the String() method to convert the numbers into strings
let num1 = String(10)
let num2 = String(4)
let sum = num1 + num2
console.log(sum)
//new result = "104"
to string js
<script type="text/javascript">
var num=213;
document.write("Output : " + num.toString(2));
</script>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us