INput Element and Mathfuntion
INput Element and Mathfuntion
1.1 Math.random()
The
1 console.log(Math.random())
1.2 Math.ceil()
The
1 console.log(Math.ceil(95.9
1 <!DOCTYPE html>
2 <html>
3 <head></head>
4 <body>
5 Your HTML code goes here. W
6 </body>
7 </html>
https://learning.ccbp.in/course?c_id=5e93210e-f183-433d-a12d-79d81deb01be&t_id=64c6b29b-1c30-4fc9-b45c-2ec92b266c14&s_id=9298e2a1-… 1/4
8/30/23, 6:49 AM Revolutionizing the Job Market | NxtWave
2. HTML Elements
The HTML
Text
Password
Radio
Date
Checkbox
Note
https://learning.ccbp.in/course?c_id=5e93210e-f183-433d-a12d-79d81deb01be&t_id=64c6b29b-1c30-4fc9-b45c-2ec92b266c14&s_id=9298e2a1-… 2/4
8/30/23, 6:49 AM Revolutionizing the Job Market | NxtWave
3. DOM Properties
3.1 Value
1 document.getElementById("i
1 <!DOCTYPE html>
2 <html>
3 <head></head>
4 <body>
5 <p>Enter your Name</p>
6 <input type="text" id="inp
7 <p>Enter your Password</p>
8 <input type="password" />
9 <div>
10 <button onclick="signIn(
11 </div>
12 <p id="signInText"></p>
13 </body>
14 </html>
https://learning.ccbp.in/course?c_id=5e93210e-f183-433d-a12d-79d81deb01be&t_id=64c6b29b-1c30-4fc9-b45c-2ec92b266c14&s_id=9298e2a1-… 3/4
8/30/23, 6:49 AM Revolutionizing the Job Market | NxtWave
4. Comparison Operator
Loose equal to (
1 console.log(2 == '2'); //
2 console.log(2 === '2'); /
https://learning.ccbp.in/course?c_id=5e93210e-f183-433d-a12d-79d81deb01be&t_id=64c6b29b-1c30-4fc9-b45c-2ec92b266c14&s_id=9298e2a1-… 4/4