Ans:where JavaScript is executed vs. where PHP is executed.:
- PHP is server-side scripting language whereas Javascript is a
client-side scripting language.
- PHP doesn’t execute within browser whereas Javascript executes
within browser.
- PHP supports database whereas Javascript doesn’t support
databases.
- PHP accepts both upper case and lower case variables while
Javascript doesn’t.
- PHP doesn’t support Objects & Arrays interchangement
whereas JavaScript supports Objects & Arrays
interchangement.