What will be the output of the following code snippet
const str1=’GeeksforGeeks’
const str2=str1.slice(2,5)
console.log(str2)

(A) eks
(B) eksf
(C) Geek
(D) Geeksf

( 5 ) 1 Rating
 1 views  .  0 comments  .   0 up votes .    0 down votes . shares 0 Download Solution PDF tuteeHUB earn credit +10 pts

Report
chat_usr_1.webp chat_usr_2.webp chat_usr_3.webp
tuteehub_quiz
Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

Write Your Comments or Explanations to Help Others


Answers(0)



webstory_list_img
Javascript Course Quiz 1 in Web Technologies Questions
webstory_list_img
Bootstrap Quiz in Web Technologies Questions
webstory_list_img
Css Quiz in Web Technologies Questions
webstory_list_img
Html Course in Web Technologies Questions
webstory_list_img
Javascript Course Quiz 1 in Web Technologies Questions
webstory_list_img
Javascript Course Quiz 2 in Web Technologies Questions

Are you worried how you'll answer job interview questions? Don't panic! Interview question has got them all listed out for you in every industry , job role and company you can think. Simply,Choose a subject/topic and start preparing for your next interview round!

open app imageOPEN APP