
String Methods
Authored by Shogher Ghazaryan
Other
Professional Development
Used 23+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ինչ կտպի հետևյալ կոդը
var str = "Hello";
alert(str.length)
6
5
4
undefined
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ինչ կտպի
var str = "Hello world";
var res = str.slice(1, 7);
alert(res)
ello w
ello
ello wo
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ինչ կտպի
var str = "Hello world";
var res = str.substring(1, 5);
alert(res)
ello
ello w
Hello
world
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ինչ կտպի
var str = "Hello world";
var result = str.substr(6,1);
alert(result)
o
w
e
d
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ինչ կտպի
var str = "Hello world"
var res = str.slice(6)
alert(res)
o world
llo wo
Hello
world
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ինչ կտպի
var str = "HELLO WORLD";
str.toLowerCase();
alert(str.charAt(8))
R
O
r
o
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ինչ կտպի
var str = "Hello world! World!!!";
var result = str.indexOf("world");
alert(result)
6
12
-1
7
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?