# Eval () function

**URL:** <https://community.postman.com/t/eval-function/8240>\
**Category:** Help Hub\
**Tags:** eval\
**Created:** [October 8, 2019, 3:21pm UTC](https://community.postman.com/t/eval-function/8240 "2019-10-08T15:21:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Natasha.HildrewBrown](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/natasha.hildrewbrown/32/2981_2.png) [@Natasha.HildrewBrown](https://community.postman.com/u/Natasha.HildrewBrown)\
**Post date:** [October 8, 2019, 3:21pm UTC](https://community.postman.com/t/eval-function/8240/1 "2019-10-08T15:21:12Z")

</div>

Hi all,  
I’ve been reading this post today:

> **[Writing a behaviour driven API testing environment within Postman - Postman Blog](https://blog.getpostman.com/2015/09/29/writing-a-behaviour-driven-api-testing-environment-within-postman/)**
>
> Behaviour driven test frameworks like mocha and jasmine have certain unalienable advantages. They provide a clean way to organize tests as well as safe and (in this particular case,) isolated assertions to prevent runtime error… Continue reading...

  
Is Eval still used within postman? the blog post was so long ago and can find no recent reference to it?

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-help-category/38) before creating a new topic.**

---

<div class="post-metadata">

**Author:** ![jetison](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/jetison/32/12_2.png) [@jetison](https://community.postman.com/u/jetison)\
**Post date:** [October 8, 2019, 3:35pm UTC](https://community.postman.com/t/eval-function/8240/2 "2019-10-08T15:35:19Z")

</div>

Hi there @Natasha.HildrewBrown -

Yes, `eval()` is a native JavaScript function, so you can use it in Postman under the **Pre-request Script** and **Tests** tabs.

If you search for “eval” on this forum using the magnifying glass in the top right, you can find examples of how other folks are using it. Also here is a (somewhat) more recent post describing how to use it in general.

> **[Why is API Testing Important? Tips, Tricks & More | Postman Blog](https://blog.postman.com/api-testing-tips-from-a-postman-professional/)**
>
> Discover 10 tips and tricks for simplifying and automating the task of API testing with Postman.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 14, 2025, 3:49pm UTC](https://community.postman.com/t/eval-function/8240/3 "2025-04-14T15:49:26Z")

</div>

Closed on April 14, 2025, 3:49pm UTC


