JS
challenger
Home
JavaScript Practice
JavaScript fundamentals
How many times does a character occur?
How many times does a character occur?
Write a function that takes two strings (a and b) as arguments. Return the number of times a occurs in b.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console