Beginner (14)
Extract Nested Email from Webhook JSON in n8n
Learn how to extract a deeply nested customer email from a Webhook JSON payload in n8n using dot notation.
Access the First Item of an Array in n8n
Learn how to use zero-based indexing in n8n expressions to get the first object in a JSON array.
Format Current Date as YYYY-MM-DD in n8n using Luxon
Practice using n8n's built-in $now Luxon variable to format dates for APIs and databases.
Clean and Lowercase Email Strings in n8n
Learn how to chain JavaScript string methods .trim() and .toLowerCase() inside n8n expressions.
Round Decimal Numbers in n8n using JavaScript Math
Practice rounding float numbers to two decimal places using Math.round() ortoFixed() in n8n.
Convert a String to Uppercase in n8n
Practice formatting country codes and IDs in uppercase with toUpperCase() in n8n expressions.
Split a String and Get the First Word in n8n
Learn how to extract a first name from a full name with split() in n8n expressions.
Check if a String Contains a Word in n8n
Learn how to detect keywords in text with includes() in n8n expressions and IF nodes.
Count Characters with length in n8n
Practice validating message length (e.g. for SMS limits) with the length property in n8n.
Count Items in an Array in n8n
Learn how to count array items with length in n8n, e.g. to skip emails without attachments.
Get the Last Element of an Array in n8n
Practice reading the last item of an array with at(-1) or last() in n8n expressions.
Set a Default Value with ?? in n8n
Practice providing fallback values for empty fields with the nullish coalescing operator in n8n.
Convert a String to a Number in n8n
Learn how to convert numeric strings to real numbers with parseInt() or Number() in n8n.
Convert an Object to a JSON String in n8n
Practice converting objects to JSON text with JSON.stringify() for HTTP bodies and logs in n8n.
Intermediate (13)
Reference Data from a Previous Node in n8n
Learn how to use the $('Node Name') syntax in n8n to pull data from earlier steps in your workflow.
Filter Active Users in n8n Code Node
Learn how to use JavaScript filter() method inside an n8n Code node to keep only active users.
Parse JSON String Data in n8n
Learn how to use JSON.parse() inside n8n expressions to convert stringified JSON into an object.
Use JavaScript Ternary Operator in n8n Expressions
Learn how to write shorthand if/else ternary conditions inside n8n expressions.
Extract Domain Name from URL using JavaScript in n8n
Learn how to parse URLs using standard JavaScript URL constructor inside n8n expressions.
Remove Characters with replaceAll() in n8n
Practice cleaning phone numbers by removing every dash with replaceAll() in n8n.
Extract a Field from Every Object with map() in n8n
Learn how to turn an array of objects into an array of values using map() in n8n.
Filter an Array of Objects in an n8n Expression
Practice keeping only matching objects in an array with filter() inside n8n expressions.
Find One Object in an Array with find() in n8n
Learn how to look up a single record in an array by ID with find() in n8n expressions.
Get All Field Names with Object.keys() in n8n
Practice listing the keys of a JSON object with Object.keys() in n8n โ handy for dynamic payloads.
Avoid Errors on Missing Fields with Optional Chaining in n8n
Learn how to safely read nested fields that may not exist using ?. in n8n expressions.
Find the Maximum Value in an Array in n8n
Practice getting the highest number in an array with Math.max() and the spread operator in n8n.
Add Days to a Date with Luxon plus() in n8n
Learn how to calculate due dates and reminders by adding days to $now in n8n.
Advanced (5)
Sum Values with reduce() in n8n
Master reduce() in n8n expressions to calculate totals from an array of line items.
Sort an Array of Objects by a Field in n8n
Learn how to sort objects by a numeric field with a compare function in n8n expressions.
Format an ISO Date String in n8n
Master turning API timestamps into readable dates with DateTime.fromISO() and toFormat() in n8n.
Collect Values from All Input Items in an n8n Code Node
Learn how to read every incoming item with $input.all() in the n8n Code node and collect a field.
Extract an Email from Text with Regex in n8n
Master pulling an email address out of free text with match() and a regular expression in n8n.