Web Development
12-06-2024

Types in PHP and Types in JS

Dmytro Tus
Full Stack Web developer

In this post I decided to write the basic types in PHP and JavaScript.

In PHP there are 9 types:

But in JS there are 8 types, (6 first are primitives and 2 last are non-primivives)

  • number
  • Bigint
  • String
  • boolean
  • null
  • undefined
  • Object
  • Symbol

Another posts