PHP vs JavaScript: An In-Depth Comparison of the Two Scripting Languages
HTML-код
- Опубликовано: 23 июл 2024
- Want to dive deep into two of the most popular scripting languages? 👩💻 Discover their similarities, differences, and an in-depth comparison chart here!
👉 Subscribe: ruclips.net/user/Kinsta?sub_...
PHP and JavaScript are both scripting languages that web developers use frequently. But each has its own nuances and use cases.
Did you know that JavaScript was originally known as Mocha? Or that the name PHP came from Personal Home Page Tools? 🤔
In this video, we’ll explore the differences between the two, and when you should use each language in development projects, so tune in!
_________________________
🕘Timestamps
0:00 Intro
0:43 PHP and JavaScript Similarities
1:18 Typing of Variables
2:28 Classes and Objects
3:44 Market Demand
3:58 Documentation
4:09 What Are the Differences Between PHP vs JavaScript?
11:16 Usage on the Web
13:02 Learning PHP vs JavaScript
_________________________
📚Resources
📙Full Guide on PHP vs JavaScript
► kinsta.com/blog/php-vs-javasc...
📝 PHP Documentation
► www.php.net/docs.php
🔖 ECMAScript 2020 language specification
► www.ecma-international.org/pu...
📚MDN JavaScript Documentation
► developer.mozilla.org/en-US/d...
#PHPvsJavaScript #PHP #javascript
ℹ️ About Kinsta
Kinsta provides Managed WordPress Hosting for projects of all sizes, serving over 120,000+ businesses worldwide. Officially recommended by Google Cloud, Kinsta leverages Google's Premium Tier network and the fastest C2 and C3D machines to guarantee lightning-fast load times. Kinsta provides enterprise-level security, a free global edge CDN with 260+ PoPs, and 24/7/365 support.
🚀 Don’t let unnecessarily complicated and underperforming hosts delay your projects. Explore our plans to find the perfect fit to run your WordPress sites ► kinsta.com/wordpress-hosting/...
💡Learn more about Kinsta’s hosting solutions:
👉Managed WordPress Hosting: kinsta.com/wordpress-hosting/
👉 Try risk-free with our 30-day money-back guarantee
👤Follow us:
► kinsta.com/blog/
► kinsta.com/newsletter/
► / kinsta
► / kinstahosting
► / kinstahosting Наука
I use both. Javascript to manipulate the DOM for event listeners, animations, toggling and client-side validation. PHP for database manipulation, back-end logic, server-side validation and conditions in HTML.
I work with both but I love working with PHP.
It's easier to do the same thing, because you don't have to deal with the event loop of Javascript.
Python is better
@@levdev5659 In what ways is Python better, in your opinion? It definitely excels in data science and machine learning, but JavaScript and PHP excel in web development. They each have their strong suits and each excels at a particular task more than the others.
@@levdev5659 Python is suck
@@Louisianish Kid just wanted to be heard.
Magnificent. First time am seeing this. Kudos Bro.
This was a very well done video... thank you.
Amazing, Thanks for the insight
What an incredible video. I started to learn how to code not long ago with JS, but I was undecided between PHP or Python as a second language. This video helped me a lot. Thanks and keep up the good work!
Well explained content thank you very much
That's Really Helped Me
Wow! amazing job at explaining both! I am currently learning JS and PHP. But I’m not sure if I should stick to one or continue learning both at the same time? Thoughts?
Good searched information
If js is interpreted language, does it mean that Typescript has to be first compiled to js and then interpreted anyway? So in this case compiled language isn't really faster than interpreted (I don't really consider TS a language, rather an extension, but i think it is)?
Sometimes, the term "transpiled language" is used to denote languages that are "compiled" to another language which will alter be interpreted or compiled. The term "compiled language" will be understood as a language that compiles to machine code by most programmers IMO.
yes you are right typescript has to be compiled
Thank u so much
Can we use free database in our web app.
The video sound is pretty good, beyond my imagination
Thank you
Respect!
amazing video
And which language do you think is better to learn first?
Php
Loves your explanation. Great !
the difference between compiled and non compiled languages are in a lot of cases negligible, depending on how your server is setup, for example for php add redis, opcache, you can even compile to c++ code
Alaso to be honest i cound the documentation for js and php a lot cleaner compared to c#, java etc
As a TIP for PHP devs "USE Nginx instead of apache"
PHP versions 1-6 < Javascript < PHP versions 7-8 < Typescript.
The is no version or superset of javascript that can even go on parr with PHP
Oranges > appples
Don't confuse!😅