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
  • НаукаНаука

Комментарии • 30

  • @ronarmengol1677
    @ronarmengol1677 Год назад +10

    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.

  • @Stoney_Eagle
    @Stoney_Eagle 2 года назад +16

    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.

    • @levdev5659
      @levdev5659 Год назад

      Python is better

    • @Louisianish
      @Louisianish Год назад +7

      @@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.

    • @tonyata7006
      @tonyata7006 Год назад

      @@levdev5659 Python is suck

    • @devdude7607
      @devdude7607 Год назад +4

      @@Louisianish Kid just wanted to be heard.

  • @NedumEze
    @NedumEze 2 года назад

    Magnificent. First time am seeing this. Kudos Bro.

  • @stachowi
    @stachowi 11 месяцев назад

    This was a very well done video... thank you.

  • @keivansf3459
    @keivansf3459 2 года назад

    Amazing, Thanks for the insight

  • @alexpfernandes
    @alexpfernandes 4 месяца назад

    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!

  • @seokamela
    @seokamela 2 года назад

    Well explained content thank you very much

  • @sristhf3166
    @sristhf3166 Год назад

    That's Really Helped Me

  • @BM-_
    @BM-_ Год назад

    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?

  • @Syria..
    @Syria.. 2 года назад +1

    Good searched information

  • @zakhariihusar6975
    @zakhariihusar6975 Год назад

    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)?

    • @JeyPeyy
      @JeyPeyy Год назад

      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.

    • @MightyKingKala
      @MightyKingKala Год назад

      yes you are right typescript has to be compiled

  • @navdeepsingh8312
    @navdeepsingh8312 2 года назад +1

    Thank u so much
    Can we use free database in our web app.

  • @vanngontruong9792
    @vanngontruong9792 2 года назад

    The video sound is pretty good, beyond my imagination

  • @jonathanfraga3771
    @jonathanfraga3771 2 года назад

    Thank you

  • @Lyrik-Klinge
    @Lyrik-Klinge 2 года назад

    Respect!

  • @MightyKingKala
    @MightyKingKala Год назад

    amazing video

  • @blbezcc
    @blbezcc 2 года назад +1

    And which language do you think is better to learn first?

  • @cmohanc
    @cmohanc Год назад

    Loves your explanation. Great !

  • @SXsoft99
    @SXsoft99 2 года назад

    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"

  • @akin242002
    @akin242002 2 года назад

    PHP versions 1-6 < Javascript < PHP versions 7-8 < Typescript.

    • @Michael-tm9ke
      @Michael-tm9ke 2 года назад +2

      The is no version or superset of javascript that can even go on parr with PHP

    • @ronald418
      @ronald418 Год назад

      Oranges > appples

    • @cmohanc
      @cmohanc Год назад

      Don't confuse!😅