mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 03:26:22 +00:00
18 lines
413 B
Markdown
18 lines
413 B
Markdown
---
|
|
date: 2020-11-12
|
|
id: 8a5acfc2-e49c-4f3a-8823-00d7b57e8569
|
|
title: JavaScript String startsWith Method
|
|
---
|
|
|
|
# Syntax
|
|
|
|
``` javascript
|
|
console.log('hello'.startsWith('hell')) // true
|
|
console.log('hello'.startsWith('ell', 1)) // true
|
|
```
|
|
|
|
# See also
|
|
|
|
- [endsWith](20201112095428-javascript_string_endswith_method)
|
|
- [JavaScript String Prototype
|
|
Methods](20201112095341-javascript_string_prototype_methods)
|