This file contains 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
<div class="container-fluid"> | |
<div class="row"> | |
<div class="col-12"> | |
<div class="container-fluid"> | |
<div id="container-category-faq"> | |
{% for block in section.blocks %} | |
{% if block.type == 'header' %} | |
<h3 id="category-faq-title" class="text-center">{{block.settings.header}}</h3> | |
{% else %} |
This file contains 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
// https://codeburst.io/learn-how-to-handle-javascript-errors-with-try-throw-catch-finally-83b4f9ef8c6f | |
try { | |
let hello = prompt("Type hello"); | |
if (hello !== 'hello'){ | |
throw new Error("Oops, you didn't type hello"); | |
} | |
} | |
catch(e) { | |
alert(e.message); | |
} |