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
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<h2>JavaScript Math.random()</h2> | |
<p>Math.random() returns a random number between 0 (included) and 1 (excluded):</p> |
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
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<h2>JavaScript Math.min()</h2> | |
<p>Math.min() returns the lowest value in a list of arguments:</p> |
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
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<h2>JavaScript Math.sin()</h2> | |
<p>Math.sin(x) returns the sin of x (given in radians):</p> |
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
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<h2>JavaScript Math.PI</h2> | |
<p>Math.PI returns the ratio of a circle's circumference to its diameter:</p> |
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
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<p id="demo"></p> | |
<script> |
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
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<h2>JavaScript setHours()</h2> | |
<p>The setHours() method sets the hours of a date object:</p> |
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
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<h2>JavaScript setFullYear()</h2> | |
<p>The setFullYear() method sets the year of a date object:</p> |
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
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<h2>JavaScript getDate()</h2> | |
<p>The getDate() method returns the day of a date as a number (1-31):</p> |
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
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<h2>JavaScript getMonth()</h2> | |
<p>The getMonth() method returns the month of a date as a number from 0 to 11.</p> |
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
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<h2>JavaScript getTime()</h2> | |
<p>The internal clock in JavaScript counts from midnight January 1, 1970.</p> |