Code with Switch Joy-Cons?

Since Switch Joy-Cons run off of Bluetooth, I was wondering if it was possible to code with them on snap. I know I won't be able to do it myself.

Recently, I tried understanding how to work with Bluetooth devices in JavaScript, but I still don't mostly get it.