mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2025-11-20 17:48:34 +00:00
1.0 KiB
1.0 KiB
| description | contentType |
|---|---|
| How to use console.log() or print() | howto |
Using console.log or print in the Code node
You can use console.log() or print() in the Code node to help when writing and debugging your code.
For help opening your browser console, refer to this guide by Balsamiq{:target=_blank .external-link}.
console.log (JavaScript)
For technical information on console.log(), refer to the MDN developer docs{:target=_blank .external-link}.
For example, copy the following code into a Code node, then open your console and run the node:
let a = "apple";
console.log(a);
print (Python)
For technical information on print(), refer to the Real Python's guide{:target=_blank .external-link}.
For example, set your Code node Language to Python, copy the following code into the node, then open your console and run the node:
a = "apple"
print(a)