---
title: "Discussion on \"When does a function returns \"undefined\"?\" | Hashnode"
description: "Discussion on \"When does a function returns \"undefined\"?\". Functions provide the result. They are used to perform a task and return a result which can be used somewhere else in the code."
url: "https://hashnode.com/posts/when-does-a-function-returns-undefined/63ea0354094bcfd98438058c"
---

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

Discussion

# [When does a function returns "undefined"?](https://shraddha-v.hashnode.dev/when-does-a-function-returns-undefined?utm_source=hashnode&utm_medium=feed)

Functions provide the result. They are used to perform a task and return a result which can be used somewhere else in the code.

Feb 13, 2023 · 3 min read · shraddha-v.hashnode.dev  
Read the article

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

## Written by

[Shraddha Vishwakarma](https://hashnode.com/@shraddha22)

@shraddha22 · Mumbai, India

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

Learning to become a Frontend Developer

I am currently learning frontend Development. Coming from a non-tech background, I was not aware how fun programming is. It is like solving a puzzle.

## Responses 1

Markdown supported · ⌘↵ to post

[shubham tiwari](https://hashnode.com/@Techstick)

[Feb 13, 2023](https://hashnode.com/posts/when-does-a-function-returns-undefined/63ea0354094bcfd98438058c/comment/63ea06d6768cc62a5a102c35)

Beautifully explained. On point. Good examples.

[Shraddha Vishwakarma](https://hashnode.com/@shraddha22)

[Feb 14, 2023](https://hashnode.com/posts/when-does-a-function-returns-undefined/63ea0354094bcfd98438058c/comment/63ea06d6768cc62a5a102c35#reply-63eb78671a02604287e7defa)

Thank you, Shubham!
