|
Posted by otrWalter@gmail.com on 04/04/07 05:18
> 2. I have JavaScript - The Definitive Guide 3rd Ed. by David Flanagan
> published by O'reilly. I have had this book for a while so I am
> taking the advice of learning to use HTML wtih Javascripting.
Here's something else to keep in mind...
Javascript and PHP have *very* similar syntax. Close enough to drive
you crazy when you find the differences.
To help my head, I code my JS like I code my PHP.
Yep! $ signs for all vars and the whole lot!
Yep! Makes the JS code look like PHP at first glance, but it also
helps my poor feeble brain when I read it.
But beware of the concantination symbol! PERIOD for PHP, PLUS for JS
OK, the array and classes are galaxies apart, but except that... (yes,
the list goes on) ;)
walter
[Back to original message]
|