1.

Negative positions for string do not work in ______________(a) Internet Explorer 8(b) Chrome(c) Safari(d) OperaI got this question in homework.My question is based upon Essential JavaScript and jQuery in chapter HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Correct choice is (a) Internet Explorer 8

To EXPLAIN: While USING SLICE(), substr() and SUBSTRING() method we pass numbers as parameters respective to the string. E.g var tes= str.slice(-10). -10 is indicates negative position. It does not WORK in Internet Explorer or older versions.



Discussion

No Comment Found

Related InterviewSolutions