-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path6.js
More file actions
33 lines (31 loc) · 680 Bytes
/
6.js
File metadata and controls
33 lines (31 loc) · 680 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
// var x=1;
// function f1(callback){
// x=x+2;
// callback();
// }
// function f2(){
// console.log(x);
// }
// f1(f2)
// -------------------------------------
// const num=[1,2,3,4];
// delete num[2];
// console.log(num);
// -----------------------------------
// function f3(javascript){
// let a=5;
// for (let index = 0; index < javascript; index++) {
// console.log(a);
// }
// }
// f3(3);
// -------------------------------------
// const mytimeout=setTimeout(mygreeting,5000);
// function mystopfunction(){
// clearTimeout(mytimeout);
// }
// function mygreeting(){
// console.log('greetings!');
// }
// console.log('start!');
// -----------------------------------