Skip to content

Commit 0e0bdc2

Browse files
committed
add https stuff
1 parent 8fae1f8 commit 0e0bdc2

File tree

13 files changed

+430
-18
lines changed

13 files changed

+430
-18
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
** Asynchronous Code
3+
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous
4+
* 1. Callbacks
5+
* 2. Promises
6+
* 3. Async/Await
7+
* 4. Async Generators
8+
*/
9+
10+
/**
11+
** callbacks
12+
https://www.dashingd3js.com/lessons/javascript-callback-functions
13+
*/
14+
function callback(x) {
15+
console.log(x);
16+
}
17+
function callbackFunction(var1, var2, callback1, callback2) {
18+
callback1(var1);
19+
callback2(var2);
20+
}
21+
22+
callbackFunction( 1, 2, // var1, var2
23+
function (x) { console.log(x); }, // callback1
24+
function (x) { console.log(x); } // callback2
25+
);
26+
27+
/**
28+
** Promises
29+
*/

01-Reteaching-JavaScript/04-TypesOfFunctions/slides/00-Async.md renamed to 01-Reteaching-JavaScript/04-TypesOfFunctions/slides/03-Async.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Functions"
2+
title: "Async Functions"
33
logoImg: "https://raw.githubusercontent.com/HansUXdev/JavaScript-First/2acf5840c15af96602aceb66303ea69c5b75e344/logo.svg"
44
theme : "night"
55
transition: "slide"

01-Reteaching-JavaScript/04-TypesOfFunctions/slides/tempCodeRunnerFile.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

02-ClientVServer/04-HTTPS/code/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const fs = require('fs');
22
const key = fs.readFileSync('./key.pem');
33
const cert = fs.readFileSync('./cert.pem');
4-
const PORT = 303;
4+
const PORT = 8080;
55
const https = require('https');
66
const express = require('express');
77
const app = express();

0 commit comments

Comments
 (0)