filmov
tv
JavaScript has dynamic types

Показать описание
//JavaScript has dynamic types, can be used to hold different data types.
// add a div with id="demo" in your html file
let x; // Now x is undefined
x = 5; // Now x is a Number
x = "John"; // Now x is a String
.innerHTML = "The result is: " + x;
// add a div with id="demo" in your html file
let x; // Now x is undefined
x = 5; // Now x is a Number
x = "John"; // Now x is a String
.innerHTML = "The result is: " + x;