DevBits
Home
Atlas
Play
About
Sign up
Log in
All
JavaScript
Strings and Text
Has Prefix
Has Prefix in JavaScript
Has Prefix in JavaScript
Posted by
yhuang
Public (Editable by Users)
Language
JavaScript
Dependencies
None
Run
Play
Copy
Copy To
Default Playground
Expand
Fork
Edit
Main
var str = "Hello world"; console.log(str.startsWith("Hello"));
Stdout
Stderr