Since JavaScript and PHP have almost the same syntax,can I design website by using Html,Css and PHP instead of and without Java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Since JavaScript and PHP have almost the same syntax,can I design website by using Html,Css and PHP instead of and without Java?

Java and PHP syntax comparison

23rd Jan 2020, 1:37 AM
Ajibade David
Ajibade David - avatar
4 Answers
+ 6
Java is not the same as Javascript.
23rd Jan 2020, 5:29 AM
Sonic
Sonic - avatar
+ 5
PHP only works on the back-end. JS works on the front end and Node.js works on the back-end.
23rd Jan 2020, 5:30 AM
Sonic
Sonic - avatar
+ 4
//Yes you can design website without JavaScript but there will many things your website missing
23rd Jan 2020, 1:51 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 3
Yes you can but as Sudarshan Rai 👑 pointed out there will be things you may want to consider such as Javascript is for client side where as PHP is meant to be more backend server side... here is an article you may want to read in your ponder: http://www.differencebetween.net/technology/difference-between-javascript-and-php/
23rd Jan 2020, 2:09 AM
BroFar
BroFar - avatar