Skip to content

Instantly share code, notes, and snippets.

@jtsternberg
Last active February 8, 2022 22:51
Show Gist options
  • Select an option

  • Save jtsternberg/6fd7e567d35da410898974ff4b0bf561 to your computer and use it in GitHub Desktop.

Select an option

Save jtsternberg/6fd7e567d35da410898974ff4b0bf561 to your computer and use it in GitHub Desktop.

Revisions

  1. jtsternberg revised this gist Feb 8, 2022. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions log-colors-group.js
    Original file line number Diff line number Diff line change
    @@ -9,5 +9,4 @@ colors.forEach(c => console.log(`%c `,
    padding: 5px 5px;
    `
    ) );
    console.groupEnd('colors');

    console.groupEnd('colors');
  2. jtsternberg created this gist Dec 2, 2021.
    13 changes: 13 additions & 0 deletions log-colors-group.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    var colors = ['#EC0089','#0C1127','#00cfed'];
    console.group('colors', {colors});
    colors.forEach(c => console.log(`%c `,
    `
    display: block;
    background: ${c};
    width: 5px;
    height: 5px;
    padding: 5px 5px;
    `
    ) );
    console.groupEnd('colors');