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
6
Primitive Data Types
John Nunemaker
PRO
September 03, 2009
Tweet
Share
More Decks by John Nunemaker
See All by John Nunemaker
Atom
jnunemaker
PRO
9
4.1k
MongoDB for Analytics
jnunemaker
PRO
10
800
Addicted to Stable
jnunemaker
PRO
32
2.4k
MongoDB for Analytics
jnunemaker
PRO
21
2.2k
MongoDB for Analytics
jnunemaker
PRO
16
30k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Why NoSQL?
jnunemaker
PRO
10
890
Don't Repeat Yourself, Repeat Others
jnunemaker
PRO
7
3.3k
I Have No Talent
jnunemaker
PRO
14
920
Other Decks in Programming
See All in Programming
どうして僕の作ったクラスが手続き型と言われなきゃいけないんですか
akikogoto
1
120
Arm移行タイムアタック
qnighy
0
310
見せてあげますよ、「本物のLaravel批判」ってやつを。
77web
7
7.7k
Jakarta Concurrencyによる並行処理プログラミングの始め方 (JJUG CCC 2024 Fall)
tnagao7
1
290
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
2
520
AWS IaCの注目アップデート 2024年10月版
konokenj
3
3.3k
C++でシェーダを書く
fadis
6
4.1k
Jakarta EE meets AI
ivargrimstad
0
130
Compose 1.7のTextFieldはPOBox Plusで日本語変換できない
tomoya0x00
0
190
Enabling DevOps and Team Topologies Through Architecture: Architecting for Fast Flow
cer
PRO
0
310
ActiveSupport::Notifications supporting instrumentation of Rails apps with OpenTelemetry
ymtdzzz
1
230
Less waste, more joy, and a lot more green: How Quarkus makes Java better
hollycummins
0
100
Featured
See All Featured
Building Applications with DynamoDB
mza
90
6.1k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
720
Ruby is Unlike a Banana
tanoku
97
11k
For a Future-Friendly Web
brad_frost
175
9.4k
Happy Clients
brianwarren
98
6.7k
Bash Introduction
62gerente
608
210k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Raft: Consensus for Rubyists
vanstee
136
6.6k
We Have a Design System, Now What?
morganepeng
50
7.2k
Gamification - CAS2011
davidbonilla
80
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