+ 1

Help in JS test

Hello! I am trying to do the course test in Javascript. In the problem I have to increase the items in the array by the user input. Example: var prices = new array(25,70,15.99,11.50); //input in case 1 = 9 so the output is 33,79,24.99,20,50 but I try to use document.write(); , alert(); and Console.Write(); from C# too but i always have the same error "document" is not defined. "alert" is not defined. "Console" is not defined. so how i can give the output if always i receive a error when i try do show him?

3rd Dec 2020, 1:41 PM
Willian
Willian - avatar
2 Respostas
+ 2
W , use console.log ().
3rd Dec 2020, 1:45 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
3rd Dec 2020, 2:02 PM
Willian
Willian - avatar