https://www.w3schools.com/js/tryit.asp?filename=tryjs_datatypes_undefined_2 <!DOCTYPE html> <html> <body> <h2>JavaScript</h2> <p>le Variabili possono essere svuotate se si imposta il valore su <b>undefined</b>.</p> <p id="demo"></p> <script> var car = "Volvo"; car = undefined; document.getElementById("demo").innerHTML = car + "<br>" + typeof car; </script> </body> </html> 'Valori vuoti 'Un valore vuoto non ha nulla a che fare con undefined. 'Una stringa vuota ha sia un valore legale che un tipo. 'Esempio 'var car = ""; // The value is "", the typeof is "string" |