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
0
8
Primitive Data Types
John Nunemaker
PRO
September 03, 2009
Tweet
Share
More Decks by John Nunemaker
See All by John Nunemaker
Atom
jnunemaker
PRO
10
4.2k
MongoDB for Analytics
jnunemaker
PRO
11
840
Addicted to Stable
jnunemaker
PRO
32
2.5k
MongoDB for Analytics
jnunemaker
PRO
21
2.2k
MongoDB for Analytics
jnunemaker
PRO
16
30k
Why You Should Never Use an ORM
jnunemaker
PRO
55
9.2k
Why NoSQL?
jnunemaker
PRO
10
910
Don't Repeat Yourself, Repeat Others
jnunemaker
PRO
7
3.3k
I Have No Talent
jnunemaker
PRO
14
940
Other Decks in Programming
See All in Programming
チームリードになって変わったこと
isaka1022
0
200
楽しく向き合う例外対応
okutsu
0
130
DROBEの生成AI活用事例 with AWS
ippey
0
130
富山発の個人開発サービスで日本中の学校の業務を改善した話
krpk1900
4
390
Unity Android XR入門
sakutama_11
0
160
データの整合性を保つ非同期処理アーキテクチャパターン / Async Architecture Patterns
mokuo
47
17k
バックエンドのためのアプリ内課金入門 (サブスク編)
qnighy
8
1.8k
動作確認やテストで漏れがちな観点3選
starfish719
6
1k
dbt Pythonモデルで実現するSnowflake活用術
trsnium
0
170
もう僕は OpenAPI を書きたくない
sgash708
5
1.8k
Pythonでもちょっとリッチな見た目のアプリを設計してみる
ueponx
1
570
color-scheme: light dark; を完全に理解する
uhyo
5
380
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
328
38k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
6
550
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
7
630
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
32
2.1k
Raft: Consensus for Rubyists
vanstee
137
6.8k
GitHub's CSS Performance
jonrohan
1030
460k
How to Ace a Technical Interview
jacobian
276
23k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
27
1.9k
How to train your dragon (web standard)
notwaldorf
91
5.8k
How GitHub (no longer) Works
holman
314
140k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
For a Future-Friendly Web
brad_frost
176
9.5k
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