.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal

Home >> Interview Question >> JavaScript/VBScript >> Post New Question Subscribe to Interview Questions

What is output in javascript? 1+2+"3"+4+5

Posted By :BitWise     Posted Date :August 24, 2012    Points :40   Category :JavaScript/VBScript 
Once JavaScript encounter the string then it will take all other values as string only.

You can also find related Interview Question to What is output in javascript? 1+2+"3"+4+5  below: 

What is the output of this?

What is the output of this

Class A {
static byte a;
static short b;
static char c;
static int d;
static long e;
static string s;
Public Static Void Main(String args[])
{ Console.WriteLine(a+b+c+d+e+s);


The Numeric Sum of a,b,c,d,e is Zero.The Zero is converted to a string and concatenated with s.here s is Null (More...)

Name the DatTypes of JavaScript?

4)Null (More...)

Write and justify output of - select nullif('test','test')

The output will be - NULL
Justification : nullif returns NULl if given two arguments are same else returns the first specified argument. So, for the given SQL, output will be NULL. (More...)

What's the difference between Response.Write() andResponse.Output.Write()?

Response.Output.Write() allows you to write formatted output but Response.Write doesnt allow.

Example:Response.Output.Write("{0:d}", "Current Date Time: ", DateTime.Now) (More...)

Whether Javascript is a OOP's based language?

No. It doesn't support all the concepts of OOPS. It supports partially. (More...)

Whether VBscript or Javascript which is better?

Javascript. Since it is platform independent. (More...)

How do you Implement Timer Control in Javascript?

set Timedout("alert('5 seconds')",5000); Here the argument 5000 shows the millisecond value. (More...)

How do you declare 2 dimensional array in Javascript?

myarray[0][0]="Compaq 486"
myarray[0][1]="Compaq 586"
myarray[0][2]="Compaq 686"
myarray[1][0]="Dell 486"
myarray[1][1]="Dell 586"
myarray[1][2]="Dell 686"
myarray[2][0]="IBM 486"
myarray[2][1]="IBM 586"
myarray[2][2]="IBM 686" (More...)

How to validate a Email-address, in Form using JavaScript?

We can validate it through the reg expressions. For example we can declare all the reg expressions of the email in a variable as follows.

var reg = /^([A-Za-z0-9_-.])+@([A-Za-z0-9_-.])+.([A-Za-z]{2,4})$/; We need to compare the actual value with this expression for the validation. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend