Javascript Functions
// Person: {
// name: string,
// age: number,
// }
to represent the 'shape' of a Person.
When you have functions like the following, you can use the shorthand to write the type of the input and output.
function getName(person) {
return person.na...
techjourneygrowth.hashnode.dev1 min read