+ 4
JavaScript Program just printing "false"?
Code: var x = undefined; var y = new Array(x); var matrix = new Array(x); for(i = 0; i < y; i++) { matrix[i] = new Array(y+matrix); while(i == undefined){ new Array(i[x]).style.backgroundColor = "red"; document.write(i.style.color = "red") Math.sin(matrix[y])*Math.log(33/matrix[x][y]); const matrix1 = math.matrix1([[7, 1], [-2, 3]]); document.write(Math.sin(i[x]*matrix1+matrix)) } } var a = new Array(a).value = !matrix; new Array(a)+function Matrixes(a){ for(Maq = Math.sin(23*matrix); Maq<33;Maq++){ a == Math.sqrt(22*a); } }; document.write(a) and prints the term "false" why does this code do this?
2 Answers
+ 4
@Schimdlabua Thanks!
+ 2
Uhm. What do you want it to output exactly?
You should probably redo this one line by line, there are a lot of mistakes from what I can see.
- `new Array(y + matrix)` doesn't do what you think it does
- `while(i == undefined)` will cause your program to run forever
- `new Array(...).style` doesn't exist
- `i.style` doesn't either (also 2 lines earlier you said i == undefined)
- `math.matrix1` doesn't exist
- and lots more!
To help you debug your code, try hitting "F12" in your browser and see what the error messages say.