Solve programming problems in Javascript or TypeScript!
previous ~ next ~ JS Syntax HelpWarmup-1
--startHi
Given a string, return true if the string starts with 'hi'and false otherwise.
Examples
- startHi('hi there') → true
- startHi('hi') → true
- startHi('hello hi') → false
(ctrl-enter)
xxxxxxxxxx
1
function startHi(str){
2
3
}