let x = 14;
document.getElementById("demo").innerHTML =
x.toString() + "<br>" +
(14).toString() + "<br>" +
(100 + 14).toString();
String(x) // returns a string from a number variable x
String(123) // returns a string from a number literal 123
String(100 + 23) // returns a string from a number from an expression
let num1 = 52;
let num2 = num1 + '';
console.log(typeof (num2))
//Expected outpur: string
variable=5
print(type(str(variable))
#the out put is str
#include<stdio.h>
#include <math.h>
int main()
{
char str[80];
sprintf(str, "The value of PI = %f", M_PI);
puts(str);
return 0;
}