Home
<!DOCTYPE html> <html> <body> <h1>Demo: Loosely type</h1> <script> var myVar = 100; myVar = true; myVar = null; myVar = undefined; myVar = "Steve"; alert(myVar); </script> </body> </html>
Result: