//PICO v1.86
var baudrate=9600;
var Port=Serial1;
//var Port=Serial2;
Port.setup(baudrate);
//loopback jumper the tx and rx pins together to test
Port.on('data', function (data) { print("Serial> "+data); });
Port.print("Hello World");
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Try this