A simple arduino project & made with johnny-five that helps you control your LED from anywhere (ofc if you turn on yr pc 24/7)
npm install
node server
Firstly you need to upload the standardFirmataPlus library in arduino... Then only you will be able to run js in arduino
You can find many tutorials for that.
Then connect the small pin of led to gnd and longer pin in pin 13.. If you dont have leds dont worry.. Arduino provides a inbuilt led in pin 13.
Then run the server and there you go :).
Open any browser and enter http://:3000/.
You can find yr ip by typing ipconfig in cmd... If you are on mac or linux... Well IDK :) Google it xD