Files
n8n-docs/docs/code-examples/console-log.md
2022-10-25 15:13:25 +01:00

19 lines
649 B
Markdown

---
description: How to use console.log()
---
# Using console.log in the Code node
You can use `console.log()` in the Code node to help when writing and debugging your code.
For help opening your browser console, refer to [this guide by Balsamiq](https://balsamiq.com/support/faqs/browserconsole/){:target=_blank .external-link}.
For technical information on `console.log()`, refer to the [MDN developer docs](https://developer.mozilla.org/en-US/docs/Web/API/Console/log){:target=_blank .external-link}.
For example, copy the following code into a Code node, then open your console and run the node:
```js
let a = "apple";
console.log(a);
```