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>

Updated on: 19-Jun-2020

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements