I have this code: const fs = require('fs');
const seats = fs.readFileSync('testData.txt').toString('utf-8').split('\n');
and when I do seats[1][1] = "G" for example, the value of seats[1][1] remains the same. Why is that and can it be changed?
I have this code: const fs = require('fs');
const seats = fs.readFileSync('testData.txt').toString('utf-8').split('\n');
and when I do seats[1][1] = "G" for example, the value of seats[1][1] remains the same. Why is that and can it be changed?