Buy Questpond's video subscriptions on
huge discount
.
Online: 943
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Interviews
>
JavaScript
>
Loading ...
What is the output of below Javascript code?
function check_value()
{
var value = new Boolean(false);
alert(String(value));
}
Posted by
vishalneeraj-24503
on 12/19/2013 | Category:
JavaScript Interview questions
| Views: 2502 |
Points: 40
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Answer:
Output will be "false".
As we know that,Boolean data-type takes only True and False value.
The String() function converts the value of an object to a string. That's why it would be False.
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
How to Replace any Character or Word in Javascript ...
Next > :
What is the output of below Javascript code? fu ...
Comments or Responses
Login to post response
More Interview Questions by vishalneeraj-24503
What is the output of below Javascript code? function check_value() ...
How to get current Year in Javascript?
How to get Current date in Javascript?
What is the output of below Javascript Code? var fullname = "V ...
How to get only Port from URL?
How to get current URL?
Can we access Viewstate in Javascript?
How to access Session value in JavaScript?
Latest Interview Questions
Your developing web application which access data from a MS sql and ha ...
Differences between ISNULL and NULLIF ?
What will be output of following function when called? public strin ...
How to assign a value to a textbox through javascript?
DB2 - Display the employee details who are working from more than 1 an ...
DB2 - Fetch the current date and time in the following format 24/APR ...
DB2 - Find the NAMEs that have an even number of letters in them
DB2 - Find the count of departments having average salary greater than ...
More ...