|
|
|
|
|
by krapp
4334 days ago
|
|
Syntactically, I would say javascript is better than PHP. PHP only recently got around to allowing array shorthand, and I don't even know if the most recent version has anything like js' object shorthand. The way javascript handles anonymous functions and closures is better too - it's just easier to write. Though whenever the DOM gets involve, both break down into awkward messes. |
|