Every web app is gonna use JavaScript in the browser. So IMHO learning JavaScript is a must.
Then the question is: what server-side language to learn? If it were me, I'd learn a modern scripting language like Python or Ruby.
Then the question is: what server-side language to learn? If it were me, I'd learn a modern scripting language like Python or Ruby.
All though if I started out today with zero knowledge, I'd be tempted to be lazy and just learn Javascript on both the browser and server side with Node.js.
At the same time, I've tried to use PHP and JavaScript for shell scripts and I just can't get it to sit right with me. PHP is just awkward (again, my preference) and Node's shell interaction is asynchronous which doesn't work well when trying to do things like build scripts.