Templates / 🎓 Learn Code Node (JavaScript) with an Interactive Hands-On Tutorial

🎓 Learn Code Node (JavaScript) with an Interactive Hands-On Tutorial

Ready for 3.0

by Lucas Peyrin ✓ · 58,110 views · created 2025-06-27 · Miscellaneous

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 7 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. 1. Sample Data (Edit Fields (Set)): sets 1 field: users
  2. 2. Split Out Users (Split Out): splits a list into separate items
  3. 3. Process Each User (Code): runs custom JavaScript code
  4. 4. Fetch External Data (Advanced) (Code): runs custom JavaScript code
  5. 5. Calculate Average Age (Code): runs custom JavaScript code
  6. 6. Create a Binary File (Expert) (Code): runs custom JavaScript code

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (4)

From the author

How it works This workflow is a hands-on tutorial for the Code node in n8n, covering both basic and advanced concepts through a simple data processing task. 1. Provides Sample Data: The workflow begins with a sample list of users. 2. Processes Each Item (Run…

Excerpt from Lucas Peyrin's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.