Files
n8n-docs/docs/code-examples/javascript-functions/console-log.md
2023-07-18 16:11:46 +01:00

20 lines
668 B
Markdown

---
description: How to use console.log()
contentType: howto
---
# 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);
```