Daria 4 лет назад
Родитель
Сommit
f363f341ed

js_homework/index.html → js_homework_01/index.html


js_homework/index.js → js_homework_01/index.js


js_homework/yes → js_homework_01/yes


js_homework/yes.pub → js_homework_01/yes.pub


+ 12 - 0
js_homework_02/index.html

@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>Document</title>
+    <script src="index.js"></script>
+</head>
+<body>
+    
+</body>
+</html>

+ 26 - 0
js_homework_02/index.js

@@ -0,0 +1,26 @@
+// let a = +prompt("enter your year of birth")
+// let b = 2020-a
+// alert("Your age:"+b) 
+
+
+
+// let t = +prompt("temperature in degrees Celsius")
+// let T = t*1.8+32
+// alert(T)
+
+// let x=+prompt("enter the numerator")
+// let y=+prompt("enter the denominator")
+// alert(Math.floor(x/y))
+
+
+// let n=+prompt("enter the namber");
+// if(n % 2==0){
+// alert("число четное");
+// }else{
+// alert("число нечетное")
+// }
+
+// let name = prompt("Enter your name")
+// alert("Hey,"+name+"!"+" How are you?")
+
+