Problems with the Level 1 course exercise when running the JavaScript Code Node

Describe the problem/error/question

Everything works fine until I add the JavaScript code in the Code Node. When I execute it, it keeps running indefinitely and doesn’t do anything. I followed the course section step by step, and everything seems correct. Can anyone help me or tell me if this is a bug that can be solved in another way? Thanks!

What is the error message (if any)?

Please share your workflow


(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

This is the output from the IF node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system: