vanillajs-deck/slides/130-string-power.html
2020-01-28 13:41:29 -08:00

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>