var y=0;
var x=0;
function randomNumber1(){
x=Math.floor((Math.random())*6)+1;
console.log(x);
return x;
}
function randomNumber2(){
y=Math.floor((Math.random())*6)+1;
console.log(y);
return y;
}
randomNumber1();
randomNumber2();
console.log(randomNumber1);
console.log(randomNumber2);
Im not getting the returned value in the function. the function is displaying all the codes as its value.
function randomNumber1() and randomNumber2() are not being returned.