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>
Updated on: 2020-06-19T11:20:59+05:30

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements