Wolfram defines the modulo operation as "m mod n is the remainder on division of m by n. The sign of m mod n for real m, n is always the same sign of n."
Python has a true modulo operator.
-5 % 2
# => 1
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>D3 Date</title> | |
<style> | |
.dates { | |
margin-left: 200px; | |
} | |
} | |
.entry-date { |
// jquery's method to get total document height dimensions | |
const height = Math.max(document.body.scrollHeight, document.body.offsetHeight, document.documentElement.clientHeight, | |
document.documentElement.scrollHeight, document.documentElement.offsetHeight); |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>D3 Selection UI</title> | |
<style> | |
html, | |
body { | |
margin: 0; | |
padding: 0; | |
} |
Functions represent computations to be performed.
A return
statement causes a function to cease execution and return a value to the caller. If no value is specified the return statement will return the undefined
value.
The difference between parameters and arguments. Parameters are used in function definition.
function loop(array) { // array is a parameter that defines what is passed into the function
Models are where state is contained and methods for updating the state are defined. All logic is centralized within models.
Views are functions that return a DOM tree of elements.
choo's tagged template string html builder is the yo-yo library — A tiny library for building modular UI components using DOM diffing and ES6 tagged template literals.