Quiz

  1. When would raw CSS and JavaScript be preferable over bootstrap?

    Bootstrap files are biggish, and it takes time for the browser to load them (if they aren't already in cache). So, sites that want to load quickly and aren't using many BootStrap features might well eschew it.

  2. What are examples of responsive websites that aren't made with Bootstrap?

    I think there are lots, though I don't have a list. The NYTimes.com is one.

  3. when would you use a modal? I feel like we don't really see popups in websites anymore

    Interesting. I think I still see them, but I'm only one pair of eyes. What do y'all think?

  4. could you go over how
     $('[name=name]').val(),
     $('[name=size]').val(),
     $('[name=crop]').val());
    
    works in the Bootstrap 4 Modal section? I'm a bit confused about what the elements are in here and why we are using the val() method

    Sure! Here's a link to the complete code. The code is extracting three values from the form which we then print to the console, but could do anything with.

  5. function flashText() {
      const oElem = document.getElementById("my_box");
      oElem.className = oElem.className === "go" ? "stop" : "go";
    }
    
    I was a bit confused by this function used by MDN in explaining setInterval(), especially the last line. It is a function used in the callback function of setInterval(), but it might be too specific to get into in class."

    The first line looks up the element. The second line is fancy code that changes "go" to "stop" and "go" to "stop". It uses the ternary operator to substitute for four-line if/else statement.

  6. I thought this reading was pretty straightforward and clear! / I am all set! :)

    Glad to hear it!