Interview Helper
Translate Page To German Tranlate Page To Spanish Translate Page To French Translate Page To Italian Translate Page To Japanese Translate Page To Korean Translate Page To Portuguese Translate Page To Chinese
  Number Times Read : 149      
  Go To Article# :  1 2 3 4 5  
Categories

Campus Interviews (99)
Career Helper (6)
Certification Dumps (9)
Code Samples (8)
Competitive Exams (49)
Interview Questions (349)
Walkin Interviews (20)
 
Stats
Total Articles: 566
Total Authors: 120
Total Downloads: 92841


Newest Member
Gagan Deep Sharma
 


   

Javascript Interview Questions 1

By : Nisha Sahni    99 or more times read
Submitted 2008-08-26 10:43:33 [Valid RSS feed]



What have you used JavaScript for?

Typical answers include form validations, user action confirmations, updating an Internet page dynamically and other such answers. I usually ask this question first just to get the candidate talking about JavaScript and see if they have in fact used JavaScript for something.

How do you access an element in an HTML document with JavaScript?

Give the element an ID attribute and then use JavaScript’s getElementById() function to access that element.

How do you determine how many characters are in a JavaScript string?

With the length property of the JavaScript string object.

What datatypes are supported by JavaScript?

Number, String, Undefined, null, Boolean. At a minimum, the candidate should identify Number and String.

How do you create a date in JavaScript?

With the Date object: new Date()

Where does JavaScript date object pull it’s date from?

From the client machine.

What does the isNaN function do?

Returns true is the value provided is not a numeric value and false if the number provided is a numeric value.

What is the difference between JavaScript and Java?

They are completely different languages.

How do you comment JavaScript code?

For single-line comments, begin the line with consecutive forward slashes (//). To comment a block of code, wrap it with /* code */.

Author Resource:-
Article From Interview Helper
New Members
select
Sign up
select
learn more
Affiliate Sign in
Affiliate Sign In
 
Nav Menu
Home
Login
Submit Articles
Submission Guidelines
Top Articles
Link Directory
About Us
Contact Us
Privacy Policy
RSS Feeds

Actions
Print This Article
Add To Favorites

 
Sponsors

 

 

All Rights Reserved Interview Helper