• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

system.log question

 
soumik paul
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was preparing for a technical interview and so I came across a question for which i could not find the answer. I am sure it will have a very simple answer but since I was not familiar with the language I was unable to evaluate it. If you could also explain the operation it would be helpful. The code is as follows:

var a="3";
var b=2;
var c=1;

(The next part is something which I do not remember perfectly. It was either System or console....)

System/Console.Log(a+b+c);


The question was to find the output.


Thanking You
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's all JavaScript. It has nothing at all to do with Servlets.
 
soumik paul
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok sorry my mistake completely. I will post it in the java scripts threads.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic