<main>
<div>
<button data-console="clear">clear()</button>
</div>
<div>
<section class="slide current"></section>
<section class="slide"></section>
</div>
<div id="panel">
<button id="prev" type="button" disabled>prev</button>
<button id="next" type="button">next</button>
</div>
</main>
<template id="console">
<h2>The Console Object</h2>
<p>The developer’s debugging console has been available in one form or another in web browsers for many years now. Starting out as a means for errors to be reported to the developer, its capabilities have increased in many different ways. Useful features of the console are automatically logging information such as network requests, network responses, security errors or warnings, and more.</p>
<p>There is also a way for the website’s JavaScript to trigger various commands that output to the console for debugging purposes. These commands are contained in a console object available in almost every browser.</p>
<pre><code>console.log(console);</code></pre>
<button data-console="console">log the console object</button>
</template>
<template id="common">
<h2>The Five Basic Commands</h2>
<p>We shall start with five commands that at first glance do much the same thing. Which, technically, they do. But the browsers provide additional features tied to the five commands to give each their own distinct benefit.</p>
<pre><code>console.debug('console.debug()');
console.error('console.error()');
console.info('console.info()');
console.log('console.log()');
console.warn('console.warn()');</code></pre>
<button data-console="common">show the five commands</button>
</template>