Skip to content

Instantly share code, notes, and snippets.

@dianajoan
Created September 10, 2019 10:12
Show Gist options
  • Save dianajoan/973038eeb517adaf3556d97b1c137248 to your computer and use it in GitHub Desktop.
Save dianajoan/973038eeb517adaf3556d97b1c137248 to your computer and use it in GitHub Desktop.
September 2019 [ Week 2 ] - CodePenChallenge

Multiplication Calc

Multiply With
function score (){
var num = parseInt(document.getElementById('counter').value);
var newNum = parseInt(prompt(`${num} multiply by:`));
alert(`Answer: ${num} x ${newNum} = ${num*newNum}`);
}
form
border: thin solid blue
width: 300px
padding: 10px
margin-left: 40%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment