Preview:
      <script>
          let beeCount = 400;
          let course = {
               name: 'intro to programming',
               id: 1012,
               description: 'this course introduces students to programming',
               students: [
                    student1 = {
                         name: 'James',
                         credits: 5
                    },
                    student2 = {
                         name: 'Bryan',
                         credits: 3
                    }
               ]
          };
 
          var func1 = function (a) {
               a = 456;
          }
 
          var func2 = function (item) {
               if (!item) return;
               item.name = 'JavaScript programming';
               item.id = 1015;
          }
 
          function callThem() {
               console.log(beeCount);
               func1(beeCount);
               console.log(beeCount);
 
               console.log(`Name: ${course.name}, id: ${course.id}`);
               func2(course);
               console.log(`Name: ${course.name}, id: ${course.id}`);
          }
 
          callThem();
     </script>
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter