You are reading a single comment by @Sacha and its replies. Click here to read the full conversation.
  • Many thanks DrAzzy

    It would be a nice feature in the espruino enviroment. With getters and setters nice objectoriented implementations could be made like:

    mycar.light='on'; // Hidden catch function implements the functionality

    If(mycar.ambientsensor<=5) { mycar.light='on'; } // Provided by the hidden getter function, done as above.

    Best regards

    Sacha

About

Avatar for Sacha @Sacha started