Created
May 13, 2020 03:03
-
-
Save 04wakeup/5895c7c1c51613436bf7d9ff9da9c38e 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/towenoh
This file contains hidden or 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: #FFFFF0; border: 1px solid black; color: orange; font-family: courier" | |
| width = "95%" align = center cellpadding = 10 cellspacing = 10> | |
| <tr> | |
| <th> | |
| Text | |
| </th> | |
| <th> | |
| Text | |
| </th> | |
| <th> | |
| Text | |
| </th> | |
| </tr> | |
| <tr> | |
| <td style="background-color:black" width = 150 valign="top">Left<br>test<br>test<br></td> | |
| <td style="background-color:red">Middle</td> | |
| <td style="background-color:maroon" width=150 valign="top">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 hidden or 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