JS
challenger
Home
JavaScript Practice
JavaScript fundamentals
Find the position of one string in another
Find the position of one string in another
Write a function that takes a string as an argument. The string contains the substring 'is'. Return the index of 'is'.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console