Consider following snippet:
var myStr = "http://www.quizful.com"; 
alert(myStr.slice(myStr.indexOf('q'), myStr.indexOf('om') + 2));
What message will be displayed in alert box?
Explanation
String slice() method returns part of the string in a new string. It using the start and end parameters to specify the part of the string to extract.
Sting indexOf() method returns the position of the first occurrence of a specified value in a string.

Done, @docahrens ;) :D

2016 Jun 15, 7:02:41 PM

please delete the duplicate snippet - it is confusing having 2 snippets when one is desired.

2016 Jun 12, 4:21:01 AM

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести