Buy Questpond's video subscriptions on
huge discount
.
Online: 1591
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 ...
String Operations:
What will be the Output of the Following Code
var ContentURL="http://MySite1/online-tests/1111-First-questions";
ContentURL= ContentURL.substring(ContentURL.lastIndexOf("/")+1,ContentURL.length);
var LastIndex;
if(ContentURL.indexOf('-')>-1)
LastIndex=ContentURL.indexOf('-');
else
LastIndex=ContentURL.length;
ContentURL= ContentURL.substring(ContentURL.lastIndexOf("/")+1,LastIndex);
Posted by
Lakhangarg
on 10/30/2009 | Category:
JavaScript Interview questions
| Views: 12698
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Select from following answers:
online
tests
1111
questions
All Above
Show Correct Answer
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
By Default, ASP.NET does not allow HTML tags to be ...
Next > :
What result will you get from running the followin ...
Comments or Responses
Login to post response
More Interview Questions by Lakhangarg
What is the Difference between RegisterStartupScript and RegisterClien ...
What is the name of the Store procedure to get the listing of current ...
What is the use of WAITFOR in SQL SERVER ?
What is the Name of table that contains available data type in SQL Ser ...
Name of the table that contains the Configuration value of SQL Server ...
What is the name of the System table from where we can read the Master ...
Can we use shared lock with Update Statement?
What is the name of the table from which we can get the Locking inform ...
Latest Interview Questions
What result will you get from running the following script: [CODE]C ...
In an ASP.NET website, when the web.config file is getting called?
which namespace is used to implement active directory services?
What is the difference between Postback and callback?
Is it possible to hide or mask the extension with other extension of f ...
Which namespace is used to work with RegularExpression in C#?
You catch an unhandled exception in a Page_Error handler. How can you ...
Is it possible to update a connection string stored in the Web.config ...
More ...