Q:

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

WEB TECHNOLOGIES QUESTIONS

All Replies

Viewing 1 replies (of 1 total)

Viewing 1 replies (of 1 total)

  • You must be logged in to reply to this topic.