Skip to content

Instantly share code, notes, and snippets.

@cesarkohl
Created January 13, 2020 14:49
Show Gist options
  • Select an option

  • Save cesarkohl/6e3a8358b074d15bcdffcd55e5608062 to your computer and use it in GitHub Desktop.

Select an option

Save cesarkohl/6e3a8358b074d15bcdffcd55e5608062 to your computer and use it in GitHub Desktop.
var songs = new Set ([
 'song1', 'song1', 'song1'
]);
var songsAmount = songs.size;
console.log ("There are" + songsAmount + "songs in the list");
// There are 3 songs in the list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment