-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"without modules" tutorial notes have taken
- Loading branch information
1 parent
d042c6b
commit c6ca49b
Showing
16 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
console.log("Selam app."); | ||
|
||
|
||
document.querySelector("h1").textContent="without modules" | ||
|
||
|
||
|
||
const products = [ | ||
{ | ||
name: "İphone15", | ||
price: 2000, | ||
}, | ||
{ | ||
name: "İphone14", | ||
price: 1800, | ||
}, | ||
{ | ||
name: "Samsung Galaxy", | ||
price: 2500, | ||
}, | ||
]; | ||
|
||
|
||
console.log(calculate(products)); | ||
|
||
|
||
//alt:üstteki sayfa alttakini görür.alttakinin üstekini görmesi için parametre göndermek gerekir. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
console.log("Selam cal."); | ||
|
||
|
||
let myName="ipek" | ||
console.log(myName); | ||
|
||
const calculate=(dizi)=>{ | ||
dizi.reduce((sum, product)=>sum+product.price,0) | ||
} | ||
|
||
|
||
//üst:üstteki sayfa alttakini görür.alttakinin üstekini görmesi için parametre göndermek gerekir. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
|
||
<h1>NO MODULE</h1> | ||
<script src="./calculate.js"></script> | ||
<script src="./app.js"></script> | ||
</body> | ||
</html> |