Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tilfeldigHilsen() {
- var tilfeldig = Math.floor((Math.random() *3) + 1);
- if (tilfeldig === 1) {
- console.log("Hei");
- } else if (tilfeldig === 2) {
- console.log("Hallo");
- } else if (tilfeldig === 3) {
- console.log("God dag");
- }
- }
- tilfeldigHilsen();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement