The following is javascript code and I'm using mozilla browser while hosting a localhost:
var test = 1;
console.log ("results are as such : "+ test-1 +". What we got instead is: "+ test+2 +". Astonishing!");
//The results: ("NaN. What we got instead is: 12. Astonishing!")
Doing a "Console.WriteLine("results are as such : "+ test-1 +". What we got instead is: "+ test+2 +". Astonishing!"); Will do exactly what I want it to in C# (Showing the text in quotation marks, and then showing the results of 1-1 =0, and 1+2 = 3), I'm less familiar with how it works in JavaScript, and I can't find any answers while browsing.
Can I get a hand please?