Menu
Coddy logo textTech

Recap - P Counter

Part of the Fundamentals section of Coddy's JavaScript journey — lesson 66 of 77.

challenge icon

Challenge

Easy

Create a program that receives a string as input (given), and it prints how many times the character p is in the string.

Some chars might be upper cased, use char.toLowerCase() to convert it to lower cased.

Try it yourself

let text = inp;
// Write your code below

All lessons in Fundamentals