-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUntitled-3.html
More file actions
24 lines (20 loc) · 998 Bytes
/
Untitled-3.html
File metadata and controls
24 lines (20 loc) · 998 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
<script>
document.getElementsById('message').innerText = "HelloWorld!";
</script>
<script src="external_script.js"></script>
<script src="js/external_script.js"></script>
<script src="https://www.example.com/js/external_script.js"></script>
<noscript>JavaScript is Not Enabled</noscript>
document.getElementById("message").innerText = "HelloWorld!"
window.alert('Hello World!')
console.log('Hello World')
tota=100+200
let total=300 //Этот код будет выполнен
/*let total=300
Этот код НЕ будет выполнен*/
let myNumber //Объявление переменной
myNumber = 10 //Инициализация переменной
let myString = "Hello World" //Объявление переменной и инициализация переменной
let i,j,k //Объявление трех переменных
let num = 10, char= "C" //Объявление и инициализация двух переменных
const myName="Mike"