<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>javascript on vmac.ch</title><link>https://vmac.ch/tags/javascript/</link><description>Recent content in javascript on vmac.ch</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sun, 10 Dec 2023 07:25:10 +0100</lastBuildDate><atom:link href="https://vmac.ch/tags/javascript/index.xml" rel="self" type="application/rss+xml"/><item><title/><link>https://vmac.ch/posts/2023-12-10-javascript-multidimensional-array-updating-specific-element-1702189510/</link><pubDate>Sun, 10 Dec 2023 07:25:10 +0100</pubDate><guid>https://vmac.ch/posts/2023-12-10-javascript-multidimensional-array-updating-specific-element-1702189510/</guid><description>I’ve created a two dimensional array with const foo = Array(n).fill(Array(n).fill(0)); and when updating foo[1][1] = 2 it changed all cell in column 1.
Why JS, why?!!!.
⤑ Javascript multidimensional array updating specific element.</description></item></channel></rss>