# Code does not work in function node but works fine when run separately

**URL:** <https://discourse.nodered.org/t/code-does-not-work-in-function-node-but-works-fine-when-run-separately/46297>\
**Category:** General\
**Created:** [26 May 2021 17:45 UTC](https://discourse.nodered.org/t/code-does-not-work-in-function-node-but-works-fine-when-run-separately/46297 "2021-05-26T17:45:43Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 June 2021 20:46 UTC](https://discourse.nodered.org/t/code-does-not-work-in-function-node-but-works-fine-when-run-separately/46297/21 "2021-06-09T20:46:36Z")

</div>

Closed on 9 June 2021 20:46 UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/code-does-not-work-in-function-node-but-works-fine-when-run-separately/46297.md?page=1)
