Skip to content
Quiz · Strings · lesson 6 of 12

Quiz — slice and indexOf

What does the program print?

JavaScript
const s = "JavaScript";

console.log(s.slice(4), s.indexOf("a"), s.indexOf("z"));

Subscribe to take the course

The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.

Sign in another way