---
title: "Discussion on \"Javascript Functions\" | Hashnode"
description: "Discussion on \"Javascript Functions\". // Person: {\n//  name: string,\n//  age: number,\n// }\n\nto represent the 'shape' of a Person.\nWhen you have functions like the following, you can use the shorthand to write the type of the input and output.\nfunction getName(person) {\n  return person.na..."
url: "https://hashnode.com/posts/javascript-functions/667a9fe86aced07b055eb64a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Javascript Functions](https://techjourneygrowth.hashnode.dev/javascript-functions?utm_source=hashnode&utm_medium=feed)

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

Jun 25, 2024 · 1 min read · techjourneygrowth.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Weddy Murithi](https://hashnode.com/@wnm)

@wnm

  
[View profile](https://hashnode.com/@wnm)

Aspiring DevOps || Cloud | software engineering

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
