Skip to content

Commit

Permalink
add repeat_lesson_9-JS
Browse files Browse the repository at this point in the history
  • Loading branch information
Sasha-Makar committed Feb 25, 2024
1 parent f5f3c7e commit 8969507
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
16 changes: 16 additions & 0 deletions JS_LESSONS/LESSONS/lesson_9/repeat/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>repeat_lesson-9</title>
</head>
<body>


<div class="point">qwe</div>
<div class="point">asd</div>
<div class="point">zxc</div>

<script src="main.js"></script>
</body>
</html>
49 changes: 49 additions & 0 deletions JS_LESSONS/LESSONS/lesson_9/repeat/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// console.log(22);


// let s = {
// name: 'asd'
// }
// console.log(s);
//
//
// function ObjCreator(value) {
// this.key = value;
// }
//
// let d = new ObjCreator('vasya');
// console.log(d);


console.log(window);
console.log(window.document);

console.log(document.title);
document.title = 'hello Okten';
console.log(document.title);


console.log('//////////////');


let element1 = document.querySelector('.point');
console.log(element1);


let allEl = document.querySelectorAll('.point');
console.log(allEl);

let divEl = document.getElementsByClassName('point');
console.log(divEl);












0 comments on commit 8969507

Please sign in to comment.