Help Musicon Handlebars does not render

I’m working on the Musicon project, but at step 33 the index page wont render with the new Handlebars-templated webpage! I’ve triple checked everything for typos, copied/pasted the hint answers in place of my own (there was no difference), tried searching here to no avail. Please take a look and let me know what I’m missing, I can’t figure it out.

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link href='public/style.css' rel='stylesheet'/>
    <script src="handlebars.min.js"></script>
    <script id ='templateHB' type = "text/x-handlebars-template">
    <a href= 'store.html'>Shop Now</a>

      <section class="container">
        <h1 class="branding">Musicon</h1>

          <ul class='navbar'>
            <li class='current'><a href='index.html'>Home</a></li>
            <li><a href='store.html'>Store</a></li>
            <li><a href='contact.html'>Contact</a></li>


    <article id="introduction">
      <section id='information' class="container">

      <p>&copy; Musicon</p>
    <script src="public/main.js"></script>
const context = {
  title: 'Welcome to Musicon',
  body: 'Musicon is a budding musical storefront with a mission to share the joy of music. These magnificent auditory tools are designed with musical creators, like you, in mind. Hobbyists, beginners, and experts alike can appreciate the resplendent sounds supplied by each and every instrument we carry. Join us in delivering the euphoric vibrations of melodia to the citizens of the world!',
  instruments: [
      image: '',
      name: 'Electronic Keyboard',
      description: 'A piano welcomed to the 21th century. Pianists celebrate the compact form factor and the diversity of synthesized rhythms all in one masterful musical machine.',
      price: '$1,999.00',
      sale: '$1,699.89'
      image: '',
      name: 'Electric Guitar',
      description: 'Join the legends of the \'50s and \'60s when the marriage of guitar and electricity created the most influential instrument of a generation. Note: picks sold separately.',
      price: '$599.99'
      image: '',
      name: 'Bass Guitar',
      description: 'Experience the embodiment of funkadelic frequencies that is the bass guitar. Let the deep low notes of the bass guitar resonate with heartbeats everywhere.',
      price: '$624.99'
      image: '',
      name: 'Drum Kit',
      description: 'Ever thought, "one instrument isn\'t enough?" Find an answer in the drum kit. Coordinate a collections of drums and cymbals to dictate the rhythm of musical masterpiece.',
      price: '$649.00',
      sale: '$349.00'

const templateElement = document.getElementById('templateHB');

cosnt templateSource = templateElement.innerHTML;

const template = Handlebars.compile(templateSource);

const compiledHtml = template(context);

document.getElementById('information').innerHTML = compiledHtml;

Welp I found it, it was a typo. To help anyone else in the future with a typo they can’t find, if you open the main browser console (F12), the top right will have a little red X you can click on to see errors, mine pointed to an error on line 33 of “main.js” which is how I found my “cosnt” instead of “const”

1 Like

oh man, I just spent a solid 5 mins looking at your code and I was reading to point out the cosnt typo, then I scrolled down and I read you already knew! :sweat_smile:
Awesome tip about using the browser console though!

1 Like