Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Anonymous
Anonymous asked in Computers & InternetProgramming & Design · 10 years ago

Is java script necessary for php..?

I heard that before learning php, one should have knowledge of javascript...

what is this seen..?

3 Answers

Relevance
  • 10 years ago
    Favorite Answer

    Javascript is not necessary to learn PHP. JS, for me, is only to make your site more interactive. I use javascript mainly because of its "Events".

    Let's say you have a form and you want the user to only enter no more than 20 characters, you'd want to put a counter so they'll know they haven't exceeded the limit. You'd use JS to show a counter beside each form element, this counter will increase by 1 each time a character is entered.

  • Anonymous
    10 years ago

    PHP is used to generate HTML and JavaScript, so it might be useful to know js, but it's not necessary. It might be worth while to learn jQuery though. It's basically a javascript library used to make javascript development much easier, and you will benefit greatly by using it.

  • 10 years ago

    haha. I can code in PHP and have very little knowledge of JavaScript.

Still have questions? Get your answers by asking now.