+ 1
What is the output ?? Var x=12;. Var y+=x;. Console.log (x)
please answer , I don't know the use of log.
6 Respuestas
+ 4
the tag is plain wrong it should be JS, javascript, web not c++.
please consider editing your question and adding relevant tags so you get better help and others don't get here by mistake while searching.
+ 2
12, because console.log only prints the value to the console. y+=x adds the value of x to y, while x stays the same.
there are multiple ways to print to console.
info, log, error, warning to name a few.
these are to help in debugging and filtering the console
+ 2
I think your tag is wrong ...
Edit : not the case anymore :) (tag was c++)
0
so basically it used for outputting the value
0
thanks nitor
0
yes that is correct