How to create Empty Values String in JavaScript?

JavascriptWeb DevelopmentFront End Technology

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>
raja
Published on 16-Feb-2018 15:31:29
Advertisements