diff --git a/slides/anaymous-callbacks.md b/slides/anaymous-callbacks.md new file mode 100644 index 0000000000000000000000000000000000000000..1b82c3cb137159747c99b3de198e41edfbb192c9 --- /dev/null +++ b/slides/anaymous-callbacks.md @@ -0,0 +1,15 @@ +## Anonymous Callbacks + +Don't need to explicitly name a function, instead just write the function as a parameter: + +```javascript +// Anonymous inlined callback +helloCaller("Bob Bobberson", function(name) { + // Finnish Hello + console.log("Moi " + name); +}); +``` +<pre> +Moi Bob Bobberson</pre> + +You see this **all the *time*** when dealing with nodejs and javascript in general \ No newline at end of file diff --git a/slides/event-loop.md b/slides/event-loop.md new file mode 100644 index 0000000000000000000000000000000000000000..0c6ef334ea800a9c9a7defa40b8b48e019443a9b --- /dev/null +++ b/slides/event-loop.md @@ -0,0 +1,3 @@ +## Event Loop + +* What if \ No newline at end of file diff --git a/slides/list.json b/slides/list.json index 39f423df2554360f8ac6a1135af44e8a550e77f3..c0c44d22dc02e5f2b4399129606146e7c696c628 100644 --- a/slides/list.json +++ b/slides/list.json @@ -6,5 +6,7 @@ "problem-background.md", "javascript-to-the-rescue.md", "javascript-ex1.md", - "javascript-ex2.md" + "javascript-ex2.md", + "anaymous-callbacks.md", + "event-loop.md" ] \ No newline at end of file