Difference between php and java script | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

Difference between php and java script

Differ

7th May 2019, 4:29 PM
MD Salauddin
MD Salauddin - avatar
4 Answers
+ 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.
18th May 2019, 9:46 PM
Rapt[#Demure]
Rapt[#Demure] - avatar
+ 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
14th May 2019, 7:13 PM
Prashanth Kumar
Prashanth Kumar - avatar
+ 6
Why not do the two tutorials here to find out.
8th May 2019, 12:01 AM
Sonic
Sonic - avatar
+ 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
7th May 2019, 4:34 PM
Alessio Benvenuti
Alessio Benvenuti - avatar