title: Bootstrap 4 - Navbar won't collapse
body: <p>I have no idea why it isn't working. I even tried to copy and paste the button and div tags from the examples in bootstrap's web site. I thought it has something to with the social media icons part. I turned them into comment lines but didn't work. Do you see my mistake?</p>
  
  <p>Sorry if this is a repeat. I found questions with same title but they didn't help.</p>
  
  <p>Thanks...</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!doctype html&gt;
  &lt;html lang="tr"&gt;
  &lt;head&gt;
      &lt;!-- Required meta tags --&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"&gt;
  
      &lt;!-- Bootstrap CSS --&gt;
      &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"&gt;
  
      &lt;title&gt;This is a page&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;nav class="navbar navbar-expand bg-faded" style="background-color: #233042;"&gt;
          &lt;div class="container"&gt;
  
              &lt;img class="navbar-brand" width="130" src="http://via.placeholder.com/200x50"&gt;
              &lt;button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#menu"&gt;
                  &lt;i class="fas fa-bars"&gt;&lt;/i&gt;
              &lt;/button&gt;
              
              &lt;div class="collapse navbar-collapse" id="menu"&gt;
                  &lt;ul class="navbar-nav mx-auto"&gt;
                      &lt;li class="nav-item"&gt;
                          &lt;a class="nav-link text-light" href="#"&gt;Anasayfa&lt;/a&gt;
                      &lt;/li&gt;
                      &lt;li class="nav-item"&gt;
                          &lt;a class="nav-link text-light" href="#"&gt;Ürünlerimiz&lt;/a&gt;
                      &lt;/li&gt;
                      &lt;li class="nav-item"&gt;
                          &lt;a class="nav-link text-light" href="#"&gt;Hizmetlerimiz&lt;/a&gt;
                      &lt;/li&gt;
                      &lt;li class="nav-item"&gt;
                          &lt;a class="nav-link text-light" href="#"&gt;Hakkımızda&lt;/a&gt;
                      &lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/div&gt;
  
              &lt;ul class="navbar-nav justify-content-end"&gt;
                  &lt;li class="nav-item"&gt;
                      &lt;a class="nav-link text-light" href="#" target="_blank"&gt;&lt;i class="fab fa-twitter fa-lg"&gt;&lt;/i&gt;&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li class="nav-item"&gt;
                      &lt;a class=" nav-link text-light" href="#" target="_blank"&gt;&lt;i class="fab fa-facebook-f fa-lg"&gt;&lt;/i&gt;&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li class="nav-item"&gt;
                      &lt;a class=" nav-link text-light" href="#" target="_blank"&gt;&lt;i class="fab fa-instagram fa-lg"&gt;&lt;/i&gt;&lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
  
          &lt;/div&gt;
      &lt;/nav&gt;
  
      &lt;!-- Optional JavaScript --&gt;
      &lt;script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"&gt;&lt;/script&gt;
      &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"&gt;&lt;/script&gt;
      &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"&gt;&lt;/script&gt;
      &lt;script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>