---
title: "Discussion on \"eval() function from scratch in JavaScript\" | Hashnode"
description: "Discussion on \"eval() function from scratch in JavaScript\". If you want to solve arithmetic expressions in JavaScript, we have an eval() function for that but to understand the logic let's implement our function which solves arithmetic expressions in the exact hierarchy that needs to be solved from brackets t..."
url: "https://hashnode.com/posts/eval-function-from-scratch-in-javascript/652beb63a6147eb23aaf2778"
---

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

Discussion

# [eval() function from scratch in JavaScript](https://monisazeem.hashnode.dev/eval-function-from-scratch-in-javascript?utm_source=hashnode&utm_medium=feed)

If you want to solve arithmetic expressions in JavaScript, we have an eval() function for that but to understand the logic let's implement our function which solves arithmetic expressions in the exact hierarchy that needs to be solved from brackets t...

Oct 15, 2023 · 7 min read · monisazeem.hashnode.dev  
Updated Sep 5, 2024  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#github](https://hashnode.com/tag/github)
-   [#eval-function](https://hashnode.com/tag/eval-function)
-   [#arithmetic-expressions](https://hashnode.com/tag/arithmetic-expressions)
-   [#wemakedevs](https://hashnode.com/tag/wemakedevs)

## Written by

[Monis Azeem](https://hashnode.com/@MonisAzeem)

@MonisAzeem · India

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

Prev. Full Stack Developer@Zoniqx | RWA Tokenization | AWS • TypeScript • NestJS • React

## Responses 2

Markdown supported · ⌘↵ to post

[Mohd. Faaiz Azeem](https://hashnode.com/@faaiz123)

[Oct 15, 2023](https://hashnode.com/posts/eval-function-from-scratch-in-javascript/652beb63a6147eb23aaf2778/comment/652bf778f7ca6f1033b82a2c)

Helpful 👍

[Pranjal chopra](https://hashnode.com/@Pranjal9045)

[Oct 15, 2023](https://hashnode.com/posts/eval-function-from-scratch-in-javascript/652beb63a6147eb23aaf2778/comment/652bed2b900df10a39261d9e)

Explained very well👍
