BIRT 3.7
Written by: Michael Williams
Featured Refcardz: Top Refcardz:
  1. Scrum
  2. Apache Maven 2
  3. Essential MySQL
  4. Node.js
  5. Groovy
  1. jQuery Selectors
  2. Ajax
  3. Java
  4. Spring Config.
  5. Java Concurrency

Link Details

Link 336629 thumbnail
User 277340 avatar

By darthvader
via milkshakesystems.com
Published: Jan 05 2010 / 10:32

We mentioned that Functions in JS are considered objects, this means that like any other object a function can be assigned to variables, have properties, passed as a parameter to other function and returned as a function result.
  • 16
  • 3
  • 1723
  • 0

Comments

Add your comment
User 368023 avatar

yakkoh replied ago:

0 votes Vote down Vote up Reply

Reason #25 to have a true OO language for scripting HTML.

User 306525 avatar

Dave Newton replied ago:

0 votes Vote down Vote up Reply

For specific values of "true", not necessarily relating to OO-ness. Prototype-based OO is still OO. (Unless I misinterpreted your comment, and that's what you meant.)

User 368023 avatar

yakkoh replied ago:

0 votes Vote down Vote up Reply

By 'true', I mean real, genuine, effective, like C++, Java or Ruby, with class, and construct and so on.
Actually I think (and wish) that javascript should be replaced by actionscript or ruby ... or PHP/client.

User 338827 avatar

psayre23 replied ago:

0 votes Vote down Vote up Reply

true & true + true && true != true

Each of these parts, buy themselves will == true. But the results (due to order of operations) will cause a false (rather, 0)
,

User 230127 avatar

kangax replied ago:

0 votes Vote down Vote up Reply

`this` is not an operator, it's a keyword.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.