i need help with javascript coding
Write a program that determines if the user rolled doubles in dice. (This means that the numbers showing on both dice match.) To do so, you need to prompt the user for two integers, which will represent the dice rolls.

Create a variable called rolled Doubles which has the true or false value of whether or not the two integer values are equal. Print that out.

A sample output might look something like this:
First, die? 2
Second die? 2
Rolled doubles? true

Respuesta :

Answer:# Prompting the user for the first dice roll

first_die = int(input("First die? "))

# Prompting the user for the second dice roll

second_die = int(input("Second die? "))

# Checking if the two dice rolls are equal

rolled_doubles = (first_die == second_die)

# Printing out the result

print("Rolled doubles?", rolled_doubles)

Explanation: