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
| /* | |
| Template literals if-statement example | |
| Using a single-line conditional, we can create an if-statements within template literals. | |
| */ | |
| function makeHTML(title) { | |
| return ` | |
| ${title ? ` | |
| This element has a title, and it is "${title}" | |
| ` : ` |
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
| //hello RheinNeckarJS | |
| import { | |
| green, | |
| cyan, | |
| bold, | |
| yellow, | |
| red | |
| } from "https://deno.land/std/examples/colors.ts"; //<-- update this URL |
OlderNewer