-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlearn.js
More file actions
53 lines (47 loc) · 1.89 KB
/
learn.js
File metadata and controls
53 lines (47 loc) · 1.89 KB
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
43
44
45
46
47
48
49
50
51
52
53
// let loop = "";
// function myFunction(quest, yes, no) {
// if (confirm(quest)) yes();
// else no();
// }
// myFunction (
// "do you agree to our terms",
// ()=> {alert("i agree to the terms");},
// ()=> {alert('terms cancelled');}
// )
// setTimeout(() => {
// let check = document.getElementById('btn');
// check.innerHTML = `<h1>my name is paul</h1>`
// }, 4000);
// setTimeout(() => {
// let check = document.getElementById('btc');
// check.innerHTML = `<img src="./crowdfunding-product-page-main/images/icon-bookmark.svg" alt="bookmark image">`
// }, 5000);
// practice = (a,b) => a + b;
// alert(practice(1,1))
// function loopVariable() {
// let name = "paul";
// if (name != 'paul') {
// alert(confirm("please enter your correct name"))
// }
// document.querySelector('#input').innerHTML = `${name}`
// }
// console.log(Math.PI); //returns the pi solution
// console.log(Math.random()) //returns set of random numbers
// console.log(Math.round(50)) //round up numbers to the nearest
// console.log(Math.pow(50, 16)) //returns the value of the first number and power it with the other
// console.log(Math.sqrt(50)) //returns the square root of a number
// console.log(Math.abs(30.5)) //returns the absolute value of the number passed into it
// console.log(Math.ceil(5.4)) //returns the number rounded up to it's nearest integer
// console.log(Math.E) // returns Euler's number
// Math.PI // returns PI
// Math.SQRT2 // returns the square root of 2
// Math.SQRT1_2 // returns the square root of 1/2
// Math.LN2 // returns the natural logarithm of 2
// Math.LN10 // returns the natural logarithm of 10
// Math.LOG2E // returns base 2 logarithm of E
// Math.LOG10E // returns base 10 logarithm of E
// console.log(Math.floor(Math.random() * 101))
// console.log(Boolean(100 > 1))
// function checking() {
// if (for)
// }