+ 11
Difference between php and java script
Differ
4 Respostas
+ 21
Every variable in Java needs to be prepended with a data type. This includes primitive types such as boolean, int, double and char, as well as Object data-types, such as ArrayList, String, and own objects.
In Java, every variable can only hold a value of its type.
In Java, equality on objects checks for object identity.
+ 13
both{node,php} can be used in doing backend ...
major diff are
NODE
+>fast
+>event driven /used in i.o. based apps
+>non blocking / async
+>good at handling multiple(many) req/res simultaneously
+>single threaded
+>bad for cpu intensive apps (we can use wasm though to overcome this)
PHP
+>slower than node but hhvm with php is awesome and competete with node speed
+>consumes less memory
+>best for memory intensive works
+>multi threaded (OOP)
+>awesome 😎😎😎😎i love it
+ 6
Why not do the two tutorials here to find out.
+ 5
MD Salauddin
The main difference between the two is that JavaScript is a client-side scripting language whereas PHP is a server-side scripting language. However, since the release of Node.js, JavaScript has also been used as a server-side technology allowing you to build scalable network applications.
source:
http://www.differencebetween.net/technology/difference-between-javascript-and-php/
in short...
php is used for server-side (backend- development)
javascript is used for client-side(frontend-development)
I hope I was helpful