Archive for the 'programming languages' Category

A New Language (or API for javascript)

Tuesday, March 9th, 2010

I'm thinking about writing an API for javascript that would greatly simplify the creation of simple apps that I frequently find myself remaking.

The first and last test of the night was to double check that bracket syntax works in javascript:

JAVASCRIPT:
  1. <html>
  2.   <head>
  3.   <script language="Javascript">
  4.      var _ = this;
  5.    
  6.     //alert("hi");
  7.     function test(){
  8.        document.write("testing to see if bracket syntax works in javascript... and it does<br/>");
  9.     }
  10.    
  11.     _["test"]();
  12.     test();
  13.    
  14.   </script>
  15.   </head>
  16.   <body>
  17.   </body>
  18. </html>

The result of this script is boring it simply write :

HTML:
  1. testing to see if bracket syntax works in javascript... and it does<br/>
  2. testing to see if bracket syntax works in javascript... and it does<br/>

to the body...