mirror of
https://github.com/JeremyLikness/vanillajs-deck
synced 2024-12-04 19:27:37 +00:00
13 lines
430 B
HTML
13 lines
430 B
HTML
|
<title>String Power</title>
|
||
|
<h1>String Power</h1>
|
||
|
<pre>
|
||
|
const code = "Pure JavaScript and clean code make great apps";
|
||
|
</pre>
|
||
|
<pre class="appear">
|
||
|
if (code.startsWith("Pure JavaScript") &&
|
||
|
code.includes("clean code")) {
|
||
|
console.log(`${code} is ${code.endsWith("great apps")}`);
|
||
|
}
|
||
|
</pre>
|
||
|
<pre class="appear">"Pure JavaScript and clean code make great apps is true"</pre>
|
||
|
<next-slide>140-spread-operator</next-slide>
|