SlideShare a Scribd company logo
JavaScript
JavaScript
JavaScript
•   (id: tlync)

•
•
•         …       3
“JavaScript is the only language that
people think they can program without
         actually learning it.”

                     - Douglas Crockford
k?
“JavaScript
                          HAHA” (   )

              -




                  (   )
…
jQuery
        ≠
JavaScript
JavaScript
3
1. Object
                     Object
            Object
1. Object
                       Object
              Object

2. Function
     Function    2
                  - prototype   __proto__
1. Object
                       Object
              Object

2. Function
     Function    2
                  - prototype   __proto__

3. Closure
                       -
•
    …
    …   Mozilla
•
    …
    …         Mozilla

•
    … DOM    Ajax
    …   IE   (ry
•
    …
    …          Mozilla

•
    … DOM    Ajax
    …   IE    (ry

• ECMA Script 5
    …
    …
Agenda

•5          JavaScript

•Object                  JavaScript

•Function    2

•Closure
•
5   JavaScript
5         JavaScript
    ※ :
@bad_at_math


http://www.slideshare.net/badatmath/js-shistory
1995   …
Netscape Navigator 2.0
JavaScript
(   LiveScript       )
Mozilla CTO
Java   (   )
•Java Applet
•
…   …
!
Netscape Navigator
                 !
Mozilla CTO




       http://brendaneich.com/tag/history/
Scheme              …




         http://brendaneich.com/tag/history/
!?        !
※SICP




         http://brendaneich.com/tag/history/
http://brendaneich.com/tag/history/
Java




       http://brendaneich.com/tag/history/
!? Scheme        …?
  ※SICP




            http://brendaneich.com/tag/history/
•     …

•Java                ……

•Gabage Collection   !?   ………
Scheme               Self          Java
(            )   (Prototype     OOP)   (   )




                  JavaScript
“
    Global Object
                               …”


                    http://brendaneich.com/tag/history/
JavaScript
MS
JScript

•Netscape
•JavaScript
JScript

•Netscape
•JavaScript

                        …
…
IE 3.0 Beta


JavaScript     !
IE 3.0


JavaScript   !
IE 3.0
IE 3.0
Netscape


•     MS       …

•
W3C?
…   …
…   …
※W3C
…
…
ECMA
ECMA

•

•Microsoft
ECMA Script(ES)
※
JavaScript
    ECMA
ES 1
•
•
•
•   IEEE754 (      …)

•
ES 2


•
•
ES 3
              ※


•
• String
• try/catch
•
ES 4
•
•
•
•   …

•
ES 4
•
•
•
•   …

•
ES 4
(   )
ES 5
    ※


• ES 3.1
•
• strict
• JSON
•
 http://kangax.github.com/es5-compat-table/
ES Harmony

• Class       ES 4                           ?

•2               ?

•         wiki


http://wiki.ecmascript.org/doku.php?id=harmony:harmony
5   JavaScript
Object
    JavaScript
Object
…
Object
                     Object
                      Object
            string   Function
  null
           number      Array
undefined
           boolean     String
                     Number
               ※     Boolean
                      RegExp
                        Date
                       etc...
…
Object
  JavScript
Object
  JavScript
     ※
Object
JavaScript
Object   ?
Object
Object
Object


         …
•       Object
    …
    …

•
    …            ?
•        Object      {}   new Object()
    {}            new Object()


           Java


• Object
                                 Object
Object
   Object
(__proto__)

         miyukki              Object.prototype

  name         miyukki     toString


  age              18          …


__proto__                  __proto__
(__proto__)

         miyukki                     Object.prototype

  name         miyukki            toString


  age              18                 …


__proto__                         __proto__



※ __proto__
                          IE
                         ES 5
Object
Object
•      Object
     null, undefined   Object
             Object
Object
•                Object
               null, undefined        Object
                       Object

• Object                        (=            )
       (   )    (         )
Object
•                   Object
                  null, undefined           Object
                          Object

• Object                             (=             )
       (      )     (        )



•          Object                  (__proto__)
                                      OK
Function   2
function sayHello(){
  console.log('Hello!');
}
> typeof sayHello
> typeof sayHello
    'function'
> typeof Object
> typeof Object
   'function'
'function' ?
Object
 Object
Function
  Array
  String
Number
Boolean
 RegExp
   Date
  etc...
Object
 typeof Object => 'function'
typeof Function => 'function'
  typeof Array => 'function'
  typeof String => 'function'
typeof Number => 'function'
typeof Boolean => 'function'
 typeof RegExp => 'function'
   typeof Date => 'function'
             ...
Object
  Object instanceof Function=> true
Function instanceof Function => true
  Array instanceof Function => true
  String instanceof Function => true
Number instanceof Function => true
Boolean instanceof Function => true
 RegExp instanceof Function => true
   Date instanceof Function => true
                 ...
Function
…
Function   2
new
      Function
1.       Object

2.           [[Class]]



3. prototype                      Object
     __proto__

4.           Object       this



5.                       Object
var miyukki = new Person('miyukki');
               miyukki.toString(); // Object.prototype




            Person                             Function                           Object

__proto__     Function.prototype   __proto__       Object.prototype   __proto__


 sayHello       <function>                 …        <function>                …       <function>




                         __proto__
Function
Function
• Function     new


 -                             prototype

     (__proto__)
 -           Prototype Chain
Function
• Function         new


 -                                   prototype

     (__proto__)
 -            Prototype Chain

•                        2
 - Function              prototype



 - Object            __proto__
               (     )
• ES5   new          Object.create



• ES3         null   prototype
         Object
Closure   ?
Closure   ?
     ※
…
JavaScript
2


•
•
2


         •
         •

※ with
<script type="text/javascript">
//               =>               =>
var count = 10;
console.log(count); //=> 10


var hello = function(){
  //                 =>           =>
  var hoge = 'hoge';

  //              =>
  console.log(hoge); //=> hoge

  //                =>
  console.log(count); //=> 10
}
</script>
<script type="text/javascript">
//               =>               =>
var count = 10;
console.log(count); //=> 10
                 =>
var hello = function(){
  //                 =>           =>
  var hoge = 'hoge';

  //              =>
                       =>
  console.log(hoge); //=> hoge

  //                =>
  console.log(count); //=> 10
}
</script>
※
<script type="text/javascript">
var hoge = ‘hoge’;

function add(n1, n2){
  var sum = n1 + n2;
  return sum;
}

add(10, 20);
</script>
n1              10


<script type="text/javascript">      n2              20

var hoge = ‘hoge’;                  sum         undefined


                                  arguments   {0: 10, 1: 20,...}
function add(n1, n2){
  var sum = n1 + n2;
  return sum;
}

add(10, 20);
</script>
n1               10



<script type="text/javascript">       n2               20


var hoge = ‘hoge’;                   sum            undefined


                                   arguments   {0: 10, 1: 20,...}

function add(n1, n2){
  var sum = n1 + n2;
  return sum;
}

add(10, 20);                hoge           'hoge'

</script>
                            add        <function>
n1              10
                                 hoge     'hoge'
   n2              20
                                 add    <function>
  sum         undefined


arguments   {0: 10, 1: 20,...}
Closure
Closure +
Closure +
•           2
-
-               =
Closure +
•           2
-
-                            =



•
-
                Activation


-
Closure +
Closure +
• Closure
 -
 - jQuery
 -
1. Object
            Object
1. Object
                Object



2. Function
     Function
     2
1. Object
                    Object



2. Function
     Function
     2

3. Closure
                2
?

More Related Content

What's hot

javascript objects
javascript objectsjavascript objects
javascript objects
Vijay Kalyan
 
Advanced Javascript
Advanced JavascriptAdvanced Javascript
Advanced JavascriptAdieu
 
响应式编程及框架
响应式编程及框架响应式编程及框架
响应式编程及框架
jeffz
 
Advanced JavaScript
Advanced JavaScriptAdvanced JavaScript
Advanced JavaScript
Nascenia IT
 
Oojs 1.1
Oojs 1.1Oojs 1.1
Oojs 1.1
Rodica Dada
 
Functional Object-Oriented Imperative Scala / 関数型オブジェクト指向命令型 Scala by Sébasti...
Functional Object-Oriented Imperative Scala / 関数型オブジェクト指向命令型 Scala by Sébasti...Functional Object-Oriented Imperative Scala / 関数型オブジェクト指向命令型 Scala by Sébasti...
Functional Object-Oriented Imperative Scala / 関数型オブジェクト指向命令型 Scala by Sébasti...
scalaconfjp
 
Javascript Prototype Visualized
Javascript Prototype VisualizedJavascript Prototype Visualized
Javascript Prototype Visualized
军 沈
 
The zen of async: Best practices for best performance
The zen of async: Best practices for best performanceThe zen of async: Best practices for best performance
The zen of async: Best practices for best performance
Microsoft Developer Network (MSDN) - Belgium and Luxembourg
 
From android/java to swift (3)
From android/java to swift (3)From android/java to swift (3)
From android/java to swift (3)
allanh0526
 
Live Updating Swift Code
Live Updating Swift CodeLive Updating Swift Code
Live Updating Swift Code
Bartosz Polaczyk
 
Art of Javascript
Art of JavascriptArt of Javascript
Art of Javascript
Tarek Yehia
 
Basics of JavaScript
Basics of JavaScriptBasics of JavaScript
Basics of JavaScript
Bala Narayanan
 
JavaScript - From Birth To Closure
JavaScript - From Birth To ClosureJavaScript - From Birth To Closure
JavaScript - From Birth To Closure
Robert Nyman
 
Building High Perf Web Apps - IE8 Firestarter
Building High Perf Web Apps - IE8 FirestarterBuilding High Perf Web Apps - IE8 Firestarter
Building High Perf Web Apps - IE8 Firestarter
Mithun T. Dhar
 
PHP Object Injection Vulnerability in WordPress: an Analysis
PHP Object Injection Vulnerability in WordPress: an AnalysisPHP Object Injection Vulnerability in WordPress: an Analysis
PHP Object Injection Vulnerability in WordPress: an AnalysisPositive Hack Days
 
C# Starter L02-Classes and Objects
C# Starter L02-Classes and ObjectsC# Starter L02-Classes and Objects
C# Starter L02-Classes and ObjectsMohammad Shaker
 
[A 3]Javascript oop for xpages developers - public
[A 3]Javascript oop for xpages developers - public[A 3]Javascript oop for xpages developers - public
[A 3]Javascript oop for xpages developers - public
Kazunori Tatsuki
 
Security Meetup 22 октября. «Реверс-инжиниринг в Enterprise». Алексей Секрето...
Security Meetup 22 октября. «Реверс-инжиниринг в Enterprise». Алексей Секрето...Security Meetup 22 октября. «Реверс-инжиниринг в Enterprise». Алексей Секрето...
Security Meetup 22 октября. «Реверс-инжиниринг в Enterprise». Алексей Секрето...
Mail.ru Group
 

What's hot (20)

javascript objects
javascript objectsjavascript objects
javascript objects
 
Advanced Javascript
Advanced JavascriptAdvanced Javascript
Advanced Javascript
 
响应式编程及框架
响应式编程及框架响应式编程及框架
响应式编程及框架
 
Advanced JavaScript
Advanced JavaScriptAdvanced JavaScript
Advanced JavaScript
 
Oojs 1.1
Oojs 1.1Oojs 1.1
Oojs 1.1
 
Functional Object-Oriented Imperative Scala / 関数型オブジェクト指向命令型 Scala by Sébasti...
Functional Object-Oriented Imperative Scala / 関数型オブジェクト指向命令型 Scala by Sébasti...Functional Object-Oriented Imperative Scala / 関数型オブジェクト指向命令型 Scala by Sébasti...
Functional Object-Oriented Imperative Scala / 関数型オブジェクト指向命令型 Scala by Sébasti...
 
Javascript Prototype Visualized
Javascript Prototype VisualizedJavascript Prototype Visualized
Javascript Prototype Visualized
 
The zen of async: Best practices for best performance
The zen of async: Best practices for best performanceThe zen of async: Best practices for best performance
The zen of async: Best practices for best performance
 
Iphone course 1
Iphone course 1Iphone course 1
Iphone course 1
 
From android/java to swift (3)
From android/java to swift (3)From android/java to swift (3)
From android/java to swift (3)
 
Live Updating Swift Code
Live Updating Swift CodeLive Updating Swift Code
Live Updating Swift Code
 
Art of Javascript
Art of JavascriptArt of Javascript
Art of Javascript
 
Basics of JavaScript
Basics of JavaScriptBasics of JavaScript
Basics of JavaScript
 
JavaScript - From Birth To Closure
JavaScript - From Birth To ClosureJavaScript - From Birth To Closure
JavaScript - From Birth To Closure
 
Core concepts-javascript
Core concepts-javascriptCore concepts-javascript
Core concepts-javascript
 
Building High Perf Web Apps - IE8 Firestarter
Building High Perf Web Apps - IE8 FirestarterBuilding High Perf Web Apps - IE8 Firestarter
Building High Perf Web Apps - IE8 Firestarter
 
PHP Object Injection Vulnerability in WordPress: an Analysis
PHP Object Injection Vulnerability in WordPress: an AnalysisPHP Object Injection Vulnerability in WordPress: an Analysis
PHP Object Injection Vulnerability in WordPress: an Analysis
 
C# Starter L02-Classes and Objects
C# Starter L02-Classes and ObjectsC# Starter L02-Classes and Objects
C# Starter L02-Classes and Objects
 
[A 3]Javascript oop for xpages developers - public
[A 3]Javascript oop for xpages developers - public[A 3]Javascript oop for xpages developers - public
[A 3]Javascript oop for xpages developers - public
 
Security Meetup 22 октября. «Реверс-инжиниринг в Enterprise». Алексей Секрето...
Security Meetup 22 октября. «Реверс-инжиниринг в Enterprise». Алексей Секрето...Security Meetup 22 октября. «Реверс-инжиниринг в Enterprise». Алексей Секрето...
Security Meetup 22 октября. «Реверс-инжиниринг в Enterprise». Алексей Секрето...
 

Similar to 第7回みゆっき☆Think 本気で学ぶ JavaScript

Javascript Everywhere
Javascript EverywhereJavascript Everywhere
Javascript Everywhere
Pascal Rettig
 
A Deep Dive into Javascript
A Deep Dive into JavascriptA Deep Dive into Javascript
A Deep Dive into Javascript
Tiang Cheng
 
JSLT: JSON querying and transformation
JSLT: JSON querying and transformationJSLT: JSON querying and transformation
JSLT: JSON querying and transformation
Lars Marius Garshol
 
コードで学ぶドメイン駆動設計入門
コードで学ぶドメイン駆動設計入門コードで学ぶドメイン駆動設計入門
コードで学ぶドメイン駆動設計入門
潤一 加藤
 
JavaScript in 2016
JavaScript in 2016JavaScript in 2016
JavaScript in 2016
Codemotion
 
JavaScript in 2016 (Codemotion Rome)
JavaScript in 2016 (Codemotion Rome)JavaScript in 2016 (Codemotion Rome)
JavaScript in 2016 (Codemotion Rome)
Eduard Tomàs
 
GDG Madrid - Dart Event - By Iván Zaera
GDG Madrid - Dart Event - By Iván ZaeraGDG Madrid - Dart Event - By Iván Zaera
GDG Madrid - Dart Event - By Iván Zaera
Jc Miñarro
 
Front end fundamentals session 1: javascript core
Front end fundamentals session 1: javascript coreFront end fundamentals session 1: javascript core
Front end fundamentals session 1: javascript coreWeb Zhao
 
Learn JS concepts by implementing jQuery
Learn JS concepts by implementing jQueryLearn JS concepts by implementing jQuery
Learn JS concepts by implementing jQuery
Wingify Engineering
 
Csw2016 gong pwn_a_nexus_device_with_a_single_vulnerability
Csw2016 gong pwn_a_nexus_device_with_a_single_vulnerabilityCsw2016 gong pwn_a_nexus_device_with_a_single_vulnerability
Csw2016 gong pwn_a_nexus_device_with_a_single_vulnerability
CanSecWest
 
Javascript
JavascriptJavascript
WEB222-lecture-4.pptx
WEB222-lecture-4.pptxWEB222-lecture-4.pptx
WEB222-lecture-4.pptx
RohitSharma318779
 
Symfony & Javascript. Combining the best of two worlds
Symfony & Javascript. Combining the best of two worldsSymfony & Javascript. Combining the best of two worlds
Symfony & Javascript. Combining the best of two worldsIgnacio Martín
 
Exciting JavaScript - Part I
Exciting JavaScript - Part IExciting JavaScript - Part I
Exciting JavaScript - Part I
Eugene Lazutkin
 
J query introduction
J query introductionJ query introduction
J query introduction
SMS_VietNam
 
"Javascript" por Tiago Rodrigues
"Javascript" por Tiago Rodrigues"Javascript" por Tiago Rodrigues
MongoDB + node.js で作るソーシャルゲーム
MongoDB + node.js で作るソーシャルゲームMongoDB + node.js で作るソーシャルゲーム
MongoDB + node.js で作るソーシャルゲーム
Suguru Namura
 

Similar to 第7回みゆっき☆Think 本気で学ぶ JavaScript (20)

Javascript Everywhere
Javascript EverywhereJavascript Everywhere
Javascript Everywhere
 
A Deep Dive into Javascript
A Deep Dive into JavascriptA Deep Dive into Javascript
A Deep Dive into Javascript
 
JSLT: JSON querying and transformation
JSLT: JSON querying and transformationJSLT: JSON querying and transformation
JSLT: JSON querying and transformation
 
コードで学ぶドメイン駆動設計入門
コードで学ぶドメイン駆動設計入門コードで学ぶドメイン駆動設計入門
コードで学ぶドメイン駆動設計入門
 
JavaScript in 2016
JavaScript in 2016JavaScript in 2016
JavaScript in 2016
 
JavaScript in 2016 (Codemotion Rome)
JavaScript in 2016 (Codemotion Rome)JavaScript in 2016 (Codemotion Rome)
JavaScript in 2016 (Codemotion Rome)
 
Week3
Week3Week3
Week3
 
GDG Madrid - Dart Event - By Iván Zaera
GDG Madrid - Dart Event - By Iván ZaeraGDG Madrid - Dart Event - By Iván Zaera
GDG Madrid - Dart Event - By Iván Zaera
 
Front end fundamentals session 1: javascript core
Front end fundamentals session 1: javascript coreFront end fundamentals session 1: javascript core
Front end fundamentals session 1: javascript core
 
Learn JS concepts by implementing jQuery
Learn JS concepts by implementing jQueryLearn JS concepts by implementing jQuery
Learn JS concepts by implementing jQuery
 
Csw2016 gong pwn_a_nexus_device_with_a_single_vulnerability
Csw2016 gong pwn_a_nexus_device_with_a_single_vulnerabilityCsw2016 gong pwn_a_nexus_device_with_a_single_vulnerability
Csw2016 gong pwn_a_nexus_device_with_a_single_vulnerability
 
Javascript
JavascriptJavascript
Javascript
 
WEB222-lecture-4.pptx
WEB222-lecture-4.pptxWEB222-lecture-4.pptx
WEB222-lecture-4.pptx
 
Symfony & Javascript. Combining the best of two worlds
Symfony & Javascript. Combining the best of two worldsSymfony & Javascript. Combining the best of two worlds
Symfony & Javascript. Combining the best of two worlds
 
Exciting JavaScript - Part I
Exciting JavaScript - Part IExciting JavaScript - Part I
Exciting JavaScript - Part I
 
J query introduction
J query introductionJ query introduction
J query introduction
 
Dart
DartDart
Dart
 
jQuery Objects
jQuery ObjectsjQuery Objects
jQuery Objects
 
"Javascript" por Tiago Rodrigues
"Javascript" por Tiago Rodrigues"Javascript" por Tiago Rodrigues
"Javascript" por Tiago Rodrigues
 
MongoDB + node.js で作るソーシャルゲーム
MongoDB + node.js で作るソーシャルゲームMongoDB + node.js で作るソーシャルゲーム
MongoDB + node.js で作るソーシャルゲーム
 

Recently uploaded

UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
Peter Spielvogel
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
Vlad Stirbu
 

Recently uploaded (20)

UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
 

第7回みゆっき☆Think 本気で学ぶ JavaScript

Editor's Notes

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n
  32. \n
  33. \n
  34. \n
  35. \n
  36. \n
  37. \n
  38. \n
  39. \n
  40. \n
  41. \n
  42. \n
  43. \n
  44. \n
  45. \n
  46. \n
  47. \n
  48. \n
  49. \n
  50. \n
  51. \n
  52. \n
  53. \n
  54. \n
  55. \n
  56. \n
  57. \n
  58. \n
  59. \n
  60. \n
  61. \n
  62. \n
  63. \n
  64. \n
  65. \n
  66. \n
  67. \n
  68. \n
  69. \n
  70. \n
  71. \n
  72. \n
  73. \n
  74. \n
  75. \n
  76. \n
  77. \n
  78. \n
  79. \n
  80. \n
  81. \n
  82. \n
  83. \n
  84. &gt; var obj = {}\n&gt; obj\n{}\n&gt; typeof obj\n&apos;object&apos;\n&gt; Object.prototype.call.toString(obj);\nTypeError: Cannot call method &apos;toString&apos; of undefined\n at [object Context]:1:23\n at Interface.&lt;anonymous&gt; (repl.js:171:22)\n at Interface.emit (events.js:64:17)\n at Interface._onLine (readline.js:153:10)\n at Interface._line (readline.js:408:8)\n at Interface._ttyWrite (readline.js:585:14)\n at ReadStream.&lt;anonymous&gt; (readline.js:73:12)\n at ReadStream.emit (events.js:81:20)\n at ReadStream._emitKey (tty_posix.js:307:10)\n at ReadStream.onData (tty_posix.js:70:12)\n&gt; Object.prototype.toString.call(obj);\n&apos;[object Object]&apos;\n&gt; obj.toString()\n&apos;[object Object]&apos;\n&gt; obj\n{}\n&gt; obj.name = &apos;miyukki&apos;\n&apos;miyukki&apos;\n&gt; obj.age = 18\n18\n&gt; obj.age = &apos;18&apos;\n&apos;18&apos;\n&gt; obj\n{ name: &apos;miyukki&apos;, age: &apos;18&apos; }\n&gt; obj.age = 18\n18\n&gt; obj[&apos;age&apos;]\n18\n&gt; var key = &apos;age&apos;\n&gt; obj[key]\n18\n&gt; obj.sayHello = function(){ console.log(&apos;hi!&apos;) }\n[Function]\n&gt; obj\n{ name: &apos;miyukki&apos;, age: 18, sayHello: [Function] }\n&gt; obj.sayHello()\nhi!\n&gt; obj[&apos;sayHello&apos;]()\nhi!\n&gt; obj.child = { name: &apos;Miyukki Jr&apos;, age: 0 };\n{ name: &apos;Miyukki Jr&apos;, age: 0 }\n&gt; obj.child\n{ name: &apos;Miyukki Jr&apos;, age: 0 }\n&gt; obj\n{ name: &apos;miyukki&apos;,\n age: 18,\n sayHello: [Function],\n child: { name: &apos;Miyukki Jr&apos;, age: 0 } }\n&gt; \n&gt; \n&gt; \n&gt; \n&gt; \n&gt; \n&gt; \n&gt; \n&gt; \n&gt; \n&gt; new Date();\nThu, 01 Sep 2011 09:48:31 GMT\n&gt; var today = new Date();\n&gt; today.name = &apos;kyou no namae&apos;\n&apos;kyou no namae&apos;\n&gt; today\n{ Thu, 01 Sep 2011 09:48:35 GMT name: &apos;kyou no namae&apos; }\n&gt; today.name\n&apos;kyou no namae&apos;\n&gt; today.originalFunction = function(){ console.log(&apos;original function&apos;) } \n[Function]\n&gt; today.originalFunction()\noriginal function\n
  85. &gt; var obj = {}\n&gt; obj\n{}\n&gt; typeof obj\n&apos;object&apos;\n&gt; Object.prototype.call.toString(obj);\nTypeError: Cannot call method &apos;toString&apos; of undefined\n at [object Context]:1:23\n at Interface.&lt;anonymous&gt; (repl.js:171:22)\n at Interface.emit (events.js:64:17)\n at Interface._onLine (readline.js:153:10)\n at Interface._line (readline.js:408:8)\n at Interface._ttyWrite (readline.js:585:14)\n at ReadStream.&lt;anonymous&gt; (readline.js:73:12)\n at ReadStream.emit (events.js:81:20)\n at ReadStream._emitKey (tty_posix.js:307:10)\n at ReadStream.onData (tty_posix.js:70:12)\n&gt; Object.prototype.toString.call(obj);\n&apos;[object Object]&apos;\n&gt; obj.toString()\n&apos;[object Object]&apos;\n&gt; obj\n{}\n&gt; obj.name = &apos;miyukki&apos;\n&apos;miyukki&apos;\n&gt; obj.age = 18\n18\n&gt; obj.age = &apos;18&apos;\n&apos;18&apos;\n&gt; obj\n{ name: &apos;miyukki&apos;, age: &apos;18&apos; }\n&gt; obj.age = 18\n18\n&gt; obj[&apos;age&apos;]\n18\n&gt; var key = &apos;age&apos;\n&gt; obj[key]\n18\n&gt; obj.sayHello = function(){ console.log(&apos;hi!&apos;) }\n[Function]\n&gt; obj\n{ name: &apos;miyukki&apos;, age: 18, sayHello: [Function] }\n&gt; obj.sayHello()\nhi!\n&gt; obj[&apos;sayHello&apos;]()\nhi!\n&gt; obj.child = { name: &apos;Miyukki Jr&apos;, age: 0 };\n{ name: &apos;Miyukki Jr&apos;, age: 0 }\n&gt; obj.child\n{ name: &apos;Miyukki Jr&apos;, age: 0 }\n&gt; obj\n{ name: &apos;miyukki&apos;,\n age: 18,\n sayHello: [Function],\n child: { name: &apos;Miyukki Jr&apos;, age: 0 } }\n&gt; \n&gt; \n&gt; \n&gt; \n&gt; \n&gt; \n&gt; \n&gt; \n&gt; \n&gt; \n&gt; new Date();\nThu, 01 Sep 2011 09:48:31 GMT\n&gt; var today = new Date();\n&gt; today.name = &apos;kyou no namae&apos;\n&apos;kyou no namae&apos;\n&gt; today\n{ Thu, 01 Sep 2011 09:48:35 GMT name: &apos;kyou no namae&apos; }\n&gt; today.name\n&apos;kyou no namae&apos;\n&gt; today.originalFunction = function(){ console.log(&apos;original function&apos;) } \n[Function]\n&gt; today.originalFunction()\noriginal function\n
  86. \n
  87. \n
  88. node &amp;#x306F;&amp;#x99C4;&amp;#x76EE;\n\n\n
  89. var obj &amp;#x306E; __proto__ &amp;#x304C; Object.prototype &amp;#x3067;&amp;#x3042;&amp;#x308B;&amp;#x3053;&amp;#x3068;\n\n\n
  90. \n
  91. \n
  92. \n
  93. \n
  94. \n
  95. &amp;#x306A;&amp;#x3093;&amp;#x306E;&amp;#x5909;&amp;#x54F2;&amp;#x3082;&amp;#x306A;&amp;#x3044;&amp;#x95A2;&amp;#x6570;&amp;#x3067;&amp;#x3059;&amp;#x306D;\n
  96. &amp;#x306A;&amp;#x3093;&amp;#x306E;&amp;#x5909;&amp;#x54F2;&amp;#x3082;&amp;#x306A;&amp;#x3044;&amp;#x95A2;&amp;#x6570;&amp;#x3067;&amp;#x3059;&amp;#x306D;\n
  97. \n
  98. \n
  99. \n
  100. \n
  101. \n
  102. \n
  103. \n
  104. \n
  105. \n
  106. \n
  107. \n
  108. \n
  109. \n
  110. \n
  111. \n
  112. \n
  113. \n
  114. \n
  115. \n
  116. \n
  117. \n
  118. \n
  119. \n
  120. \n
  121. \n
  122. \n
  123. \n
  124. \n
  125. \n
  126. \n
  127. \n
  128. \n
  129. \n
  130. \n
  131. \n
  132. \n
  133. \n
  134. \n
  135. \n
  136. \n
  137. \n
  138. \n