Difference Between PHP and Javascript

Difference Between PHP and Javascript
Statement end in;;
Declare variables by $variableName=”String or number here”;variableName=”String or number here”;
Print to screen byecho $variableName or  print $variableNameconsole.log(variableName);
ConcatenateThis string is concatenated with .” $variableName.”like so.”;This string is concatenated with + $variableName  +”like so.”;
Declare a function byfunction functionName(parameter){ // code here}var functionName= function(parameter){ }
Call a function byfunctionName(input here)functionName(input here)

Recommended Tutorials for you

Related posts

Difference Between Mysqli_fetch_array And Mysqli_fetch_assoc And Mysqli_fetch_row

Anuj Kumar

Diffrence between ajax and jquery

Anuj Kumar

Difference between SQL and MYSQL

Anuj Kumar

Echo vs. Print in PHP

Anuj Kumar


Anuj Kumar

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.