PHPGurukul

Difference Between PHP and Javascript

Difference Between PHP and JavascriptPHPJavascriptStatement end in;;Variables$variableNamevariableNameDeclare 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)]]>

Anuj Kumar

This is Anuj Kumar. I’m a professional web developer with 4+ year experience. I write blogs in my free time. I love to learn new technologies and share with others.
I founded PHPGurukul in September 2015. The main aim of this website to provide PHP, Jquery, MySQL, PHP Oops and other web development tutorials.
.

Recommended Tutorials for you


Add comment

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

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.