Computer >> Computer tutorials >  >> Programming >> Javascript

How to create Empty Values String in JavaScript?


To create empty values string in JavaScript, you can try to run the following code −

Example

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