The “Talk”: Where do string methods come from?

Let’s talk data

In JavaScript, there are seven “primitive” data types…

Inventing our own data type

To show how this works, we’re going to pretend to invent a brand new data type. I like football, so let’s make a fake FootballPlayer data type and define it using a function

Piecing things together

The reason we walked through the above example is to demonstrate the following. This code below…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store