Skip to content

Instantly share code, notes, and snippets.

Created December 1, 2016 02:46
Show Gist options
  • Save anonymous/e3d2c5f863a03d0a86b74344070e22ed to your computer and use it in GitHub Desktop.
Save anonymous/e3d2c5f863a03d0a86b74344070e22ed to your computer and use it in GitHub Desktop.
Numbers Numbers studies // source https://jsbin.com/waseni
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Numbers studies">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Numbers</title>
</head>
<body>
<script id="jsbin-javascript">
// -----Data Types: NUMBER---- //
/* Numbers are simply numeric values used for arithmetic. Whole integers and fractional numbers using decimal points
are permitted. With numbers of exceptional size, scientific
notation using "e" (exponent) is allowed: */
// 2.998e8 = 2.998 × 10 to the 8th power = 299,800,000
// -----Using Numbers for Arithmetic----- //
var sum = 6 + 2;
console.log(sum); // logs 8
var subtraction = 6 - 2;
console.log(subtraction); // logs 4
var multiplication = 6 * 2;
console.log(multiplication); // logs 12
var division = 6 / 2;
console.log(division); // logs 3
var fracSum = 6.5 + 2.5;
console.log(fracSum); // logs 9
</script>
<script id="jsbin-source-javascript" type="text/javascript">// -----Data Types: NUMBER---- //
/* Numbers are simply numeric values used for arithmetic. Whole integers and fractional numbers using decimal points
are permitted. With numbers of exceptional size, scientific
notation using "e" (exponent) is allowed: */
// 2.998e8 = 2.998 × 10 to the 8th power = 299,800,000
// -----Using Numbers for Arithmetic----- //
var sum = 6 + 2;
console.log(sum); // logs 8
var subtraction = 6 - 2;
console.log(subtraction); // logs 4
var multiplication = 6 * 2;
console.log(multiplication); // logs 12
var division = 6 / 2;
console.log(division); // logs 3
var fracSum = 6.5 + 2.5;
console.log(fracSum); // logs 9
</script></body>
</html>
// -----Data Types: NUMBER---- //
/* Numbers are simply numeric values used for arithmetic. Whole integers and fractional numbers using decimal points
are permitted. With numbers of exceptional size, scientific
notation using "e" (exponent) is allowed: */
// 2.998e8 = 2.998 × 10 to the 8th power = 299,800,000
// -----Using Numbers for Arithmetic----- //
var sum = 6 + 2;
console.log(sum); // logs 8
var subtraction = 6 - 2;
console.log(subtraction); // logs 4
var multiplication = 6 * 2;
console.log(multiplication); // logs 12
var division = 6 / 2;
console.log(division); // logs 3
var fracSum = 6.5 + 2.5;
console.log(fracSum); // logs 9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment