File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes system.log question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "system.log question" Watch "system.log question" New topic

system.log question

soumik paul

Joined: Jan 14, 2013
Posts: 5
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....)


The question was to find the output.

Thanking You
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
It is

Learn about the console:

The question is JavaScript 101 information. It is Asking if you know what happens when you combine strings and numbers together.

Normally I see the question asked like

I agree. Here's the link:
subject: system.log question
It's not a secret anymore!