in Technology by
var a = "blogsforRead"; var result = a.substring(4, 5); document.write(result); A. sf B. ks C. s D. k

1 Answer

0 votes
by

Ans: C
Explanation: The substring command selects the substring starting from 4 to 5, excluding the 5th index. The indexing starts from 0. So, the output here is just “s” rather than sf.

Related questions

0 votes
    Predict the output of the following JavaScript code.
    Question No.1: What do you understand about container tag and empty tag, give example? Question No.2: What do ... all the attributes? Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    Which type of language is Javascript Programming Scripting Markup None of the above...
asked Dec 24, 2020 by JackTerrance
0 votes
    What is the HTML tag under which one can write the JavaScript code? A) B) C)
    Which is the correct way to create an array in JavaScript? I) var myProg = []; II) var myArray = ["C","Java","C++","Python"]; III) ... 1. I, III 2. II, III 3. I, II 4. I, II & III...
asked Feb 24, 2021 in Technology by JackTerrance
0 votes
    explain two type of low level language ? for class 5 short answer Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    What does the subexpression /java(script)?/ result in? (a) It matches java followed by the ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    Write Hardware Configuration , Material Used ,Software Configuration, Type of Language of the following computers: a) ... and UNIVAC Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    Write Hardware Configuration , Material Used ,Software Configuration, Type of Language of the following computers: a) ... and UNIVAC Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
...