forked from engindemirog/javaScriptStarterKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
44 lines (29 loc) · 655 Bytes
/
app.js
File metadata and controls
44 lines (29 loc) · 655 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
43
44
class Deneme {
constructor() {
console.log('Deneme class çalıştı');
}
}
let hehe = new Deneme();
Deneme.bilal = 5;
console.log(Deneme.bilal);
console.log(hehe.bilal);
function test(def = 5, ...args) {
console.log(def, " - ", ...args);
}
test(undefined, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
let arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
console.log(Math.max(...arr));
console.log("ABC" , ..."DEF");
let [hebele, hübele] = arr
function test2([a]) {
console.log(a);
}
test2(arr);
let obj = {a:10, b:20, c:30};
let {a, b, c} = obj;
console.log(a)
import {
addToCart
} from "./functions.js";
addToCart("Elma");
console.log(hehe.type)