Function : javaconsole

This function is mostly equivalent to the javascript console.log() function.

Syntax
  javaconsole($string)
   
  $string  : supplied string
   
                  
Sample 1 - code
  javaconsole("sometext");
                  
The result of the string above is shown below
Sample 1 - result
  <script> console.log('sometext') </script>
                  
Note that the text above is directly printed to the web page. We can also supply multiple values to the function as shown in sample 2 below.
Sample 2 - code
  javaconsole('text 1','text 2');
                  
The result of the code above is shown below where each value is displayed on a different line.
Sample 2 - result
  <script> 
  
  console.log('text 1'); 
  console.log('text 2');

  </script>