DevBits
Home
Atlas
Play
About
Sign up
Log in
All
JavaScript
Strings and Text
Has Prefix
Has Prefix
Post Example
Examples in
JavaScript
Has Prefix in JavaScript
by yhuang
JavaScript
var
str =
"Hello world"
;
console
.log(str.startsWith(
"Hello"
));
Copy
Filter by Language
Apply
Cancel