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
John Nunemaker
PRO
September 03, 2009
Programming
22
0
Share
Primitive Data Types
John Nunemaker
PRO
September 03, 2009
More Decks by John Nunemaker
See All by John Nunemaker
Remote First: Building Distributed Teams that Win
jnunemaker
PRO
1
160
AI: The stuff that nobody shows you
jnunemaker
PRO
8
680
Atom
jnunemaker
PRO
10
5.1k
MongoDB for Analytics
jnunemaker
PRO
11
1.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.9k
Why NoSQL?
jnunemaker
PRO
10
1k
Other Decks in Programming
See All in Programming
Why Laravel apps break—Mastering the fundamentals to keep them maintainable
kentaroutakeda
1
330
タクシーアプリ『GO』の バックエンド開発のおける AI利活用と若者のすべて
pyama86
3
1.8k
次世代リンターで探る、tsgo 時代における型認識カスタムルールの現実解
ytakahashii
3
1.4k
LLM Plugin for Node-REDの利用方法と開発について
404background
0
160
Oxlintのカスタムルールの現況
syumai
5
980
代数的データ型って何が嬉しいの? #frontend_phpcon_do
kajitack
8
3.1k
DynamoDBには集計系のクエリがないけどなんとかしたい
musan
1
130
Stage 3 Decorators でできること / できないこと / TSKaigi 2026
susisu
1
1.5k
セキュリティの専門家じゃなくてもできる。「セキュリティ意識」をアップデートして サプライチェーン攻撃への耐性を高めよう。
tk3fftk
5
570
Old Dog, New Tricks: The Java 25 Reinvention - JNation
bazlur_rahman
0
140
「エンジニアインターン、どうやって取った?」準備のリアルを語るLT会 Progate BAR
akiomatic
0
120
Moments When Things Go Wrong
aurimas
3
140
Featured
See All Featured
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
480
Marketing to machines
jonoalderson
1
5.3k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
200
The Mindset for Success: Future Career Progression
greggifford
PRO
0
350
The Pragmatic Product Professional
lauravandoore
37
7.3k
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
310
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
400
The SEO Collaboration Effect
kristinabergwall1
1
470
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
Balancing Empowerment & Direction
lara
6
1.1k
YesSQL, Process and Tooling at Scale
rocio
174
15k
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