JSFiddle - React, Tailwind, and code Playground

JavaScript

var question_pool = Array("a","b","c","d","e","f","g","h","i","j","k","l","m");
do{
  var id = Math.floor(Math.random() * question_pool.length);
  //console.log(id);
  var question = question_pool[id];
  question_pool.splice(id, 1);
  console.log(question);
}while(question_pool.length > 0);