What device are you doing this on? It might alter how you want to enter the information.
But having said that are you doing this for something like a university project? If so I guess the idea was that you figure this out, so apart from giving some pointers I probably can't be too much help!
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.
What device are you doing this on? It might alter how you want to enter the information.
But having said that are you doing this for something like a university project? If so I guess the idea was that you figure this out, so apart from giving some pointers I probably can't be too much help!