html
html
1
2
3
4
5
6
7
8
9
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function convert(a,b){
var result = a*b;
return result;
}
var amount = prompt("Enter amount number");
var rate = prompt("Enter rate number");
var amountNum = parseInt(amount);
var rateAmount = parseFloat(rate);
var ans = convert(amountNum , rateAmount);
//console.log(convert(amount,rate));
console.log(ans);
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run