# Script Examples

**URL:** https://discourse.nodered.org/t/script-examples/50962
**Category:** General
**Created:** [13 September 2021 12:08 UTC](https://discourse.nodered.org/t/script-examples/50962 "2021-09-13T12:08:37Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![rcalves](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@rcalves](https://discourse.nodered.org/u/rcalves)
#### Post date: [13 September 2021 12:08 UTC](https://discourse.nodered.org/t/script-examples/50962/1 "2021-09-13T12:08:37Z")

</div>

Good morning, I'm new to the world of node-red, I come from back-end programming with .netCore. I saw that inside node, you can use functions, so I would like to ask for tutorials, handouts, example scripts. Apparently the font is very similar to JavaScript, but I'd like to see more in depth on the subject.  
Thanks.

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [13 September 2021 12:12 UTC](https://discourse.nodered.org/t/script-examples/50962/2 "2021-09-13T12:12:21Z")

</div>

The code in a `function` node is JavaScript. A function node is used when you can’t find an existing node that will do what you want.

I recommend watching this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [13 September 2021 12:13 UTC](https://discourse.nodered.org/t/script-examples/50962/3 "2021-09-13T12:13:28Z")

</div>

It is Javascript and here is some info on creating functions  
[https://nodered.org/docs/user-guide/writing-functions](https://nodered.org/docs/user-guide/writing-functions)

---

<div class="post-metadata">

### Author: ![MarkWalsh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/markwalsh/32/46664_2.png) [@MarkWalsh](https://discourse.nodered.org/u/MarkWalsh)
#### Post date: [13 September 2021 21:47 UTC](https://discourse.nodered.org/t/script-examples/50962/4 "2021-09-13T21:47:34Z")

</div>

There’s a typo on that page. I’m assuming they meant “arbitrary”

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/b/2b667ff441f060c62a9d67f2dd979c5f7d976837.jpeg)

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [13 September 2021 22:02 UTC](https://discourse.nodered.org/t/script-examples/50962/5 "2021-09-13T22:02:28Z")

</div>

An excellent first pull request

---

<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: [12 November 2021 22:02 UTC](https://discourse.nodered.org/t/script-examples/50962/6 "2021-11-12T22:02:42Z")

</div>

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