# Why is splice() not working in the web editor?

**URL:** <https://discourse.processing.org/t/why-is-splice-not-working-in-the-web-editor/41870>\
**Category:** Beginners\
**Created:** [April 29, 2023, 3:01pm UTC](https://discourse.processing.org/t/why-is-splice-not-working-in-the-web-editor/41870 "2023-04-29T15:01:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [April 29, 2023, 4:14pm UTC](https://discourse.processing.org/t/why-is-splice-not-working-in-the-web-editor/41870/3 "2023-04-29T16:14:05Z")

</div>

> [@Strange access to data class](https://discourse.processing.org/t/strange-access-to-data-class/40063/6):
>
> Both outputs in my browser got the expected values: [1, 2, 3] & [3, 1, 2]. But b/c you’re printing an array, if a browser by chance delays the actual printing to the console, it’s possible that you’ll see the array’s most current values for all outputs. As a workaround you can extract the arrays values when printing it using the spread ... syntax: console.log(...myTest.groupe);

---

_[View the full topic](https://discourse.processing.org/t/why-is-splice-not-working-in-the-web-editor/41870)._
