运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,暗/亮
前往 Spaces
<!DOCTYPE html> <html> <body> <h1>JavaScript Datatypes</h1> <p>An empty string has both a legal value and a type:</p> <p id="demo"></p> <script> let car = ""; document.getElementById("demo").innerHTML = "The value is: " + car + "<br>" + "The type is: " + typeof car; </script> </body> </html>