Skip to content

Instantly share code, notes, and snippets.

JavaScript reference for non-JavaScript programmers

Author: Yotam Gingold
License: Public Domain (CC0)

This document is intended as a reference or introduction to JavaScript for someone familiar with a language like C/C++/Java or Python. It follows best practices and gathers the scattered wisdom from matny stackoverflow questions and in-depth JavaScript essays. It relies on no external libraries.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
</body>
</html>
@miller3818
miller3818 / jsbin.nitoqu.js
Created July 28, 2014 16:42
working with a csv date with an unknown number of characters
// working with a csv date with an unknown number of characters
// can be 7 characters if day is only 1 character long
// or it'll be 8 characters if day is 2 characters long
//var csvDate = "12231991";
function getDateFromString(csvDate) {
var myYear = 0;
var myMonth = 0;
var myDay = 0;
// working with a csv date with an unknown number of characters
// can be 7 characters if day is only 1 character long
// or it'll be 8 characters if day is 2 characters long
//var csvDate = "12231991";
function getDateFromString(csvDate) {
var myYear = 0;
var myMonth = 0;
var myDay = 0;