---
title: "Discussion on \"Compose Function in JavaScript:\" | Hashnode"
description: "Discussion on \"Compose Function in JavaScript:\". You know how regular functions work:  they take parameters and apply some action to them to produce a result:\nfunction calculateTax(price, taxRate) {\n    return price*taxRate;\n}\nconsole.log(calculateTax(10, 0.3);\n//result: 3;\nThe function above has t..."
url: "https://hashnode.com/posts/compose-function-in-javascript/6214547795c64c6eda45584a"
---

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

Discussion

# [Compose Function in JavaScript:](https://destructured.xyz/compose-function-in-javascript?utm_source=hashnode&utm_medium=feed)

You know how regular functions work: they take parameters and apply some action to them to produce a result: function calculateTax(price, taxRate) { return price\*taxRate; } console.log(calculateTax(10, 0.3); //result: 3; The function above has t...

Feb 22, 2022 · 3 min read · destructured.xyz  
Updated Apr 10, 2022  
Read the article

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

## Written by

[Vic Kalchev](https://hashnode.com/@vickalchev)

@vickalchev · Toronto

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

UX Design & Front End Dev

I help team build products their customers love through UX design and front end development.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
