Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Primitive Data Types
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
John Nunemaker
PRO
September 03, 2009
Programming
0
19
Primitive Data Types
John Nunemaker
PRO
September 03, 2009
Tweet
Share
More Decks by John Nunemaker
See All by John Nunemaker
AI: The stuff that nobody shows you
jnunemaker
PRO
3
340
Atom
jnunemaker
PRO
10
4.7k
MongoDB for Analytics
jnunemaker
PRO
11
1k
Addicted to Stable
jnunemaker
PRO
32
2.8k
MongoDB for Analytics
jnunemaker
PRO
21
2.3k
MongoDB for Analytics
jnunemaker
PRO
16
30k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.8k
Why NoSQL?
jnunemaker
PRO
10
990
Don't Repeat Yourself, Repeat Others
jnunemaker
PRO
7
3.5k
Other Decks in Programming
See All in Programming
今更考える「単一責任原則」 / Thinking about the Single Responsibility Principle
tooppoo
3
1.3k
CSC307 Lecture 12
javiergs
PRO
0
450
Geminiの機能を調べ尽くしてみた
naruyoshimi
0
190
15年目のiOSアプリを1から作り直す技術
teakun
0
580
Ruby x Terminal
a_matsuda
5
550
new(1.26) ← これすき / kamakura.go #8
utgwkk
0
1.4k
RAGでハマりがちな"Excelの罠"を、データの構造化で突破する
harumiweb
8
2.3k
あなたはユーザーではない #PdENight
kajitack
4
290
New in Go 1.26 Implementing go fix in product development
sunecosuri
0
140
CSC307 Lecture 10
javiergs
PRO
1
690
Agent Skills Workshop - AIへの頼み方を仕組み化する
gotalab555
13
7.7k
JPUG勉強会 OSSデータベースの内部構造を理解しよう
oga5
2
220
Featured
See All Featured
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
970
Are puppies a ranking factor?
jonoalderson
1
3.1k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
59
50k
A Modern Web Designer's Workflow
chriscoyier
698
190k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
280
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
210
Ethics towards AI in product and experience design
skipperchong
2
210
sira's awesome portfolio website redesign presentation
elsirapls
0
170
The Pragmatic Product Professional
lauravandoore
37
7.2k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
170
Optimising Largest Contentful Paint
csswizardry
37
3.6k
4 Signs Your Business is Dying
shpigford
187
22k
Transcript
Data Types Thursday, September 3, 2009
undefined any variable that has not been assigned a value
and any property of an object that does not exist Thursday, September 3, 2009
null indicates that variable has been declared but defined empty
Thursday, September 3, 2009
number • values that can be processed and calculated •
can be positive or negative • represented internally as a double, accurate to 14 or 15 digits Thursday, September 3, 2009
number Thursday, September 3, 2009
number calculations Thursday, September 3, 2009
Math! http://www.w3schools.com/jsref/jsref_obj_math.asp Thursday, September 3, 2009
string • sequence of characters enclosed with quotation marks •
can use single or double quotes • cannot use quotes of the same type inside the same type unless they are escaped http://www.w3schools.com/jS/js_obj_string.asp Thursday, September 3, 2009
string characters Thursday, September 3, 2009
string characters Thursday, September 3, 2009
everything is zero indexed j a v a s c
r i p t 0 1 2 3 4 5 6 7 8 9 Thursday, September 3, 2009
string characters (shortcut) Thursday, September 3, 2009
string characters (shortcut) Thursday, September 3, 2009
string escaping cannot use quotes of the same type inside
the same type unless they are escaped Thursday, September 3, 2009
same quotes no escape FAIL! Thursday, September 3, 2009
meet the escape character \ Thursday, September 3, 2009
same quotes with escape WIN! Thursday, September 3, 2009
same quotes no escape FAIL! Thursday, September 3, 2009
same quotes with escape WIN! Thursday, September 3, 2009
different quotes WIN! Thursday, September 3, 2009
different quotes WIN! Thursday, September 3, 2009
string length Thursday, September 3, 2009
string search Thursday, September 3, 2009
changing string case Thursday, September 3, 2009
string to number Thursday, September 3, 2009
string to number Thursday, September 3, 2009
string to number Thursday, September 3, 2009
“class is awesome”.charAt(2) Thursday, September 3, 2009
“class is awesome”.charAt(2) “a” Thursday, September 3, 2009
“class is awesome”[0] Thursday, September 3, 2009
“class is awesome”[0] “c” Thursday, September 3, 2009
how do I get the length of “football” Thursday, September
3, 2009
how do I get the length of “football” “football”.length Thursday,
September 3, 2009
“football”.length Thursday, September 3, 2009
“football”.length 8 Thursday, September 3, 2009
“football”.indexOf(‘e’) Thursday, September 3, 2009
“football”.indexOf(‘e’) -1 Thursday, September 3, 2009
“football”.indexOf(‘foot’) Thursday, September 3, 2009
“football”.indexOf(‘foot’) 0 Thursday, September 3, 2009
what type is: ‘asdf’ Thursday, September 3, 2009
what type is: ‘asdf’ “string” Thursday, September 3, 2009
what type is: 15 Thursday, September 3, 2009
what type is: 15 “number” Thursday, September 3, 2009
what type is: -’15’ Thursday, September 3, 2009
what type is: -’15’ “number” Thursday, September 3, 2009
10 + 20 Thursday, September 3, 2009
10 + 20 30 Thursday, September 3, 2009
boolean true or false http://www.w3schools.com/jS/js_obj_boolean.asp Thursday, September 3, 2009