---
title: "Discussion on \"Javascript Exercise\" | Hashnode"
description: "Discussion on \"Javascript Exercise\". No1.\nWrite a function That multipliesByTwo that takes a number as a parameter and returns the result of multiplying it by 2. Use a callback function to print the result.\nfunction multiplyByTwo(number, callback) {\n  var result = number * 2;\n  callback..."
url: "https://hashnode.com/posts/javascript-exercise/64d4a34eb377851022d17279"
---

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

Discussion

# [Javascript Exercise](https://daxxy.hashnode.dev/javascript-exercise?utm_source=hashnode&utm_medium=feed)

No1. Write a function That multipliesByTwo that takes a number as a parameter and returns the result of multiplying it by 2. Use a callback function to print the result. function multiplyByTwo(number, callback) { var result = number \* 2; callback...

Aug 10, 2023 · 12 min read · daxxy.hashnode.dev  
Read the article

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

## Written by

[Daniel Osunkwo](https://hashnode.com/@daxxy)

@daxxy

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

software developer, graphics design, cybersecurity and ethical hacking

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
