Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demonstrate how to use IIFEs to write complex expressions. #2755

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SydneyUni-Jim
Copy link

The section "Example: Writing longer JavaScript" has that you cannot create an expression containing variable assignments or multiple statements (operations).

This pull request inverts the section to show how you can write an such expression, by wrapping the code in an IIFE.

Copy link

netlify bot commented Jan 15, 2025

Deploy Preview for n8n-docs ready!

Name Link
🔨 Latest commit aee6b2c
🔍 Latest deploy log https://app.netlify.com/sites/n8n-docs/deploys/678b2ad24ae8f500087727bd
😎 Deploy Preview https://deploy-preview-2755--n8n-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@evilnick
Copy link
Contributor

Thanks so much, this looks like an excellent enhancement to the docs.
@Joffcom any comments on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants