# Is Println deprecated?

**URL:** https://discourse.processing.org/t/is-println-deprecated/19929
**Category:** p5.js
**Created:** [April 19, 2020, 11:28am UTC](https://discourse.processing.org/t/is-println-deprecated/19929 "2020-04-19T11:28:46Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![endurance21](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/endurance21/32/8149_2.png) [@endurance21](https://discourse.processing.org/u/endurance21)
#### Post date: [April 19, 2020, 11:28am UTC](https://discourse.processing.org/t/is-println-deprecated/19929/1 "2020-04-19T11:28:46Z")

</div>

`is the method println() to print a new line deprecated? `

because it is still being used in p5.js-sound sketches and it throws an error saying prinln is not defined!!!

i am using  
p5.js version 0.6.1  
p5.js-sound version 0.3.12

---

<div class="post-metadata">

### Author: ![slow\_izzm](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/slow_izzm/32/5637_2.png) [@slow\_izzm](https://discourse.processing.org/u/slow_izzm)
#### Post date: [April 19, 2020, 3:14pm UTC](https://discourse.processing.org/t/is-println-deprecated/19929/2 "2020-04-19T15:14:05Z")

</div>

`console.log()`, but p5.js also has the `print()` method.

[https://p5js.org/reference/#/p5/print](https://p5js.org/reference/#/p5/print)

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [April 21, 2020, 2:12pm UTC](https://discourse.processing.org/t/is-println-deprecated/19929/3 "2020-04-21T14:12:15Z")

</div>

> [@endurance21](#):
>
> it is still being used in p5.js-sound sketches

Where --is this in the examples, or on the website…? Worth reporting as an issue to fix on the p5.js GitHub issues.

---

<div class="post-metadata">

### Author: ![endurance21](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/endurance21/32/8149_2.png) [@endurance21](https://discourse.processing.org/u/endurance21)
#### Post date: [April 21, 2020, 2:48pm UTC](https://discourse.processing.org/t/is-println-deprecated/19929/4 "2020-04-21T14:48:23Z")

</div>

println is still being used in sketches of p5.js-sound repo not on the main repo !

> <https://github.com/processing/p5.js-sound/blob/bdab32731b1c505f8d891d69b733a221c6a94f92/examples/peakDetect/sketch.js#L34>

and at many more places inside examples folder of the repo p5.sound

and indeed it produces error !!! 🤐

@jeremydouglass

> <https://github.com/processing/p5.js/issues/1614>
>
> Starting a list of reference pages that use the println() function in their examples, and which now need to be updated...

  
it is already there 😃  
i think i need to update the example of p5.sound and add a PR for that !!!

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [April 22, 2020, 5:05pm UTC](https://discourse.processing.org/t/is-println-deprecated/19929/5 "2020-04-22T17:05:50Z")

</div>

> [@endurance21](#):
>
> i think i need to update the example of p5.sound and add a PR for that !!!

Thank you so much for doing that! Please post the issue num here once you’ve opened it:

- [Pull requests · processing/p5.js-sound · GitHub](https://github.com/processing/p5.js-sound/issues?q=is%3Aissue+println)

---

<div class="post-metadata">

### Author: ![endurance21](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/endurance21/32/8149_2.png) [@endurance21](https://discourse.processing.org/u/endurance21)
#### Post date: [April 24, 2020, 4:25am UTC](https://discourse.processing.org/t/is-println-deprecated/19929/6 "2020-04-24T04:25:42Z")

</div>

@jeremydouglass  
Here we go!  
I have replaced println with console.log and i have asked for review for the same!  
[https://github.com/processing/p5.js-sound/pull/451](https://github.com/processing/p5.js-sound/pull/451)
