This message was posted on behalf of Intel Corporation
Thank you for your interest in the Intel® Edison Breakout Board.
I have to inform you that code debugging is out of the scope of this technical support team.
I noticed that you posted your inquiry here https://stackoverflow.com/questions/45163142/command-to-turn-on-led-after-finding-word-from-array, I’ll suggest you to follow Whitney’s suggestion and create an independent LED.js file to test the code that you want to add to the API.
For more information on using the Edison module with Twitter, you may want to check the following links:
If you have any question related to the Edison module, don’t hesitate to contact us.
Have a nice day.