title: How to read serial port data from JavaScript
body: <p>I connected an Arduino to my laptop using USB, and I can read the serial data using Processing.</p>
  
  <p>Is there any way to get this data in real time into a local webbrowser? For example, a text field that shows the value from the serial port? It does not have to be connected to the internet.</p>
  
  <p>The JavaScript version of Processing does not support the following code, which would have been the ideal solution.</p>
  
  <p>The Processing code is:</p>
  
  <pre><code>myPort = new Serial(this, Serial.list()[0], 9600);
  // read a byte from the serial port
  int inByte = myPort.read();
  // print it
  println(inByte);
  // now send this value somewhere...?
  // ehm...
  </code></pre>