Created
May 13, 2020 02:41
-
-
Save 04wakeup/39970c7ec72c7925a7c0247a57219dda to your computer and use it in GitHub Desktop.
ES6 in Action: New String Methods ES6 in Action: New String Methods [3] // source https://jsbin.com/meqigec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="ES6 in Action: New String Methods [3]"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>ES6 in Action: New String Methods</title> | |
</head> | |
<body> | |
<table style="background-color: gray; border: 1px solid black; color: orange; font-family: courier" | |
width = "95%" align = center > | |
<tr> | |
<td style="background-color:black">Left</td> | |
<td style="background-color:red">Middle</td> | |
<td style="background-color:maroon">Right</td> | |
</tr> | |
</table> | |
<script id="jsbin-javascript"> | |
'use strict'; | |
var str = 'Hello everybody, my name is Aurelio De Rosa.'; | |
var result = str.includes('Aurelio'); | |
console.log(result); | |
result = str.includes('Hello', 10); | |
console.log(result); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">const str = 'Hello everybody, my name is Aurelio De Rosa.'; | |
let result = str.includes('Aurelio'); | |
console.log(result); | |
result = str.includes('Hello', 10); | |
console.log(result);</script></body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var str = 'Hello everybody, my name is Aurelio De Rosa.'; | |
var result = str.includes('Aurelio'); | |
console.log(result); | |
result = str.includes('Hello', 10); | |
console.log(result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment