Created
May 19, 2020 03:19
-
-
Save 04wakeup/1a35566bb4adb2983f862dde7942d40d 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/fogimim
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> | |
<style id="jsbin-css"> | |
body{ | |
color: red; | |
text-align:left; | |
font-size: 40px; | |
font-family: Geogia; | |
} | |
h1{ | |
color: orange; | |
background-color:black; | |
font-size: 30px; | |
text-align: left; | |
text-transform: lowercase; | |
text-indent: 60px; | |
font-family: Verdana; | |
} | |
p{ | |
color: rgb(1,255,1); | |
font-size: 60px; | |
text-align: left; | |
text-transform: uppercase; | |
text-indent: 40px; | |
text-decoration: blink; | |
font-family: Courier; | |
} | |
</style> | |
</head> | |
<body> | |
Times new Roman | |
<h1>Header 1</h1> | |
<p>This is an awesome paragraph</p> | |
<h1>This is another header</h1> | |
<p>Thisis another paragraph</p> | |
<p>this is a 3rd paragraph. this is a 3rd paragraph.this is a 3rd paragraph.this is a 3rd paragraph.this is a 3rd paragraph.this is a 3rd paragraph.this is a 3rd paragraph.</p> | |
Text | |
<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-css" type="text/css">body{ | |
color: red; | |
text-align:left; | |
font-size: 40px; | |
font-family: Geogia; | |
} | |
h1{ | |
color: orange; | |
background-color:black; | |
font-size: 30px; | |
text-align: left; | |
text-transform: lowercase; | |
text-indent: 60px; | |
font-family: Verdana; | |
} | |
p{ | |
color: rgb(1,255,1); | |
font-size: 60px; | |
text-align: left; | |
text-transform: uppercase; | |
text-indent: 40px; | |
text-decoration: blink; | |
font-family: Courier; | |
}</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
body{ | |
color: red; | |
text-align:left; | |
font-size: 40px; | |
font-family: Geogia; | |
} | |
h1{ | |
color: orange; | |
background-color:black; | |
font-size: 30px; | |
text-align: left; | |
text-transform: lowercase; | |
text-indent: 60px; | |
font-family: Verdana; | |
} | |
p{ | |
color: rgb(1,255,1); | |
font-size: 60px; | |
text-align: left; | |
text-transform: uppercase; | |
text-indent: 40px; | |
text-decoration: blink; | |
font-family: Courier; | |
} |
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