n8n LabBeginner

Get the Last Element of an Array in n8n

A status history array always has the current status at the end.

Live Execution Simulator Idle
πŸ“₯
Incoming Data
βš™οΈ
n8n Node
🎯
Next Step
> Ready. Type your expression below and click "Check Answer" to run the node.

Incoming Payload / Data:

{
  "history": ["created", "paid", "shipped"]
}
$json.history

βš™οΈ Your expression is executed against test data β€” any correct solution passes. +10 XP

Related labs