This is the description of the classes for JavaScript foundamentals.
- Values, Operators and Variables (lesson 1)
- Primitives Types (lesson 1)
- Strings
- Numbers
- Array
var inspector = function(obj){ | |
var config = config || {}, | |
html = ''; | |
config.iter = function(e){ | |
html = '<ul>'; | |
if( typeof e === "function" ){ | |
// setTimeout(function(){ | |
try{ |
#!/bin/bash | |
LATEST=$(curl https://api.github.com/repos/m3kh/momo/commits | underscore extract '0.sha' | sed s/[^a-zA-Z0-9\_]//g); | |
CURRENT=$(cat /home/pi/.momo_version | sed s/[^a-zA-Z0-9\_]//g); | |
echo "${LATEST}"; | |
echo "${CURRENT}"; | |
if [ "$LATEST" = "$CURRENT" ]; then | |
echo "Momo is uptodate"; |
function ABlockingFunction( stopAtTime ){ | |
var StartAt = new Date(); | |
var animation = ['Running...']; | |
while( StartAt <= stopAtTime ){ | |
StartAt = new Date(); | |
animation.push('.') | |
console.log(animation.join('')); | |
} | |
return this; | |
} |
<html> | |
<head> | |
<script src="./index.js"></script> | |
</head> | |
<body> | |
<ul id="repos"> | |
</ul> | |
</body> | |
</html> |
class MovieEmployed { | |
constructor(name) { | |
this.name = name; | |
this.movies = []; | |
} | |
addMovie(movieInstance) { | |
this.movies.push(movieInstance); |
<html> | |
<head> | |
<title>Tic Tac Toe!</title> | |
</head> | |
<body> | |
<div> | |
<span> | |
<input name="" type="text" value="-" size="1"/> | |
</span> |