如何在JavaScript中创建空值字符串?

要在JavaScript中创建空值字符串,您可以尝试运行以下代码-

示例

<html>
   <head>
      <script>
         var val;
         val = "";
         document.write("Value: "+val);
         document.write("<br>Type: "+typeof val);
      </script>
   </head>
   <body>
   </body>
</html>