Skip to content

Instantly share code, notes, and snippets.

View CodersArts's full-sized avatar
💭
Computer Science Assignment Portal.We offers programming assignment.

CodersArts CodersArts

💭
Computer Science Assignment Portal.We offers programming assignment.
View GitHub Profile
@CodersArts
CodersArts / jsmathrandom.html
Created October 18, 2019 11:53
Math.random() returns a random number between 0 and 1
#Codersarts
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Math.random()</h2>
<p>Math.random() returns a random number between 0 (included) and 1 (excluded):</p>
@CodersArts
CodersArts / jsmathmin.html
Created October 18, 2019 11:47
Math.min() returns the lowest value in a list
#Codersarts
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Math.min()</h2>
<p>Math.min() returns the lowest value in a list of arguments:</p>
@CodersArts
CodersArts / jsmathsin.html
Created October 18, 2019 11:43
Math.sin(x) returns the sin of x
#Codersarts
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Math.sin()</h2>
<p>Math.sin(x) returns the sin of x (given in radians):</p>
@CodersArts
CodersArts / jsmathpi.html
Created October 18, 2019 11:37
Math.PI returns the ratio of a circle's circumference to its diameter
#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>
@CodersArts
CodersArts / jscomparedates.html
Created October 18, 2019 10:32
In JavaScript we can compare dates
#Codersarts
<!DOCTYPE html>
<html>
<body>
<p id="demo"></p>
<script>
@CodersArts
CodersArts / jssethoursmethod.html
Created October 18, 2019 10:30
The setHours() method sets the hours of a date object
#Codersarts
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript setHours()</h2>
<p>The setHours() method sets the hours of a date object:</p>
@CodersArts
CodersArts / jssetfullyear.html
Created October 18, 2019 10:27
The setFullYear() method sets the year of a date object
#Codersarts
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript setFullYear()</h2>
<p>The setFullYear() method sets the year of a date object:</p>
@CodersArts
CodersArts / jsgetdate.html
Created October 18, 2019 10:12
The getDate() method returns the day of a date as a number
#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>
@CodersArts
CodersArts / jsgetmonth.html
Created October 18, 2019 10:10
getMonth() method returns the month of a date as a number from 0 to 11
#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>
#Codersarts
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript getTime()</h2>
<p>The internal clock in JavaScript counts from midnight January 1, 1970.</p>