-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmdnPrac.html
More file actions
42 lines (30 loc) · 756 Bytes
/
mdnPrac.html
File metadata and controls
42 lines (30 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<script type="text/javascript" src="mdnPrac.js">
<head>
</head>
<body>
<button id="mahButton" type="button" style="height:100px;width:100px" > Click It </button>
</body>
</html>
<script type="text/javascript">
/*function buttonClicked(){
alert("lalalallala");
}
var myButton = document.getElementById("mahButton");
myButton.addEventListener("click",function(){
buttonClicked();
});*/
//console.log(4+5);
//var op1 = "39" - 9;
//var op2 = "39" * 9;
//alert(op1);
//alert(op2);
// function calcFac(n){
// return n<2?1:n*calcFac(n-1);
//}
// alert(calcFac(5));
//var factorial = function factorial(n){
//return n<2?1:n*factorial(n-1);
//}
//alert(factorial(5));
</script>