15

Once again I find myself grabbing for some kind of tech to see what's happening here.

Comments
  • 6
    You have a typo on 15th line: "GrapPhone"
  • 1
    So I did, eye's was not really open lol
  • 2
    For readability and robustness, I would use grabPhone = true and grabPhone = false or house.charger(phone, grabPhone) and let the charger manage your state variable from there.

    No sense in a stream of toggles.
  • 0
    First I thought it was Chop Suey System of a Down >.>
  • 1
    Error: Cannot call function OpenApp of undefined.
    Error: Cannot call function OpenApp of undefined.
  • 0
    @Mayhem93 The Open App would be another preset lib, so there wouldn't be any undefined error there, @starless, the app needs to know the state before we can all it and the charger was not in reach lol, There is better ways to do it but I only just woke up and I still messed it up with spelling mistakes :P
Add Comment