Can anyone explain this code to me?

Can anyone explain this short piece of code to me?

  • Hello to the people who see this question, Could anyone explain this piece of processing.js code: Tile.prototype.isUnderMouse = function(x, y) { return x >= this.x ...show more

  • Answer:

    Just to see, wrote ... <html> <head> <script> function huh(x, y) { return x >= 10 && x <= 10 + 15 && y >= 12 && y <= 12 + 15; } </script> <body> <p><script> alert(huh(12, 14)); alert(huh(9,8)); </script> </body> </html> ... resulted in true then false, so the +'s are performed first then the comparisons are calculated, with an end result of boolean (ie. true or false) ... hope this helps.

2OPO3BJWL3GYBEEPKZFTEUOR2E at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.