wiki/content/20201112095504-javascript_string_includes_method.md

13 lines
230 B
Markdown
Raw Permalink Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-30 17:34:11 +00:00
date: 2020-11-12
2024-05-06 20:40:05 +00:00
id: da46f6f1-d81f-48f7-9704-fd1f69debb85
title: JavaScript String includes Method
---
# Syntax
``` javascript
console.log('hello'.includes('ell')) // true
console.log('hello'.includes('ell', 1)) // true
```