Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const questions = ['pierwsze', 'drugie', 'trzecie', 'czwarte'];
- const getQuestion = () => {
- document.getElementById('question').innerText =
- questions.splice(Math.floor(Math.random() * questions.length), 1)[0]
- || 'Nie ma więcej pytań';
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement