| resl has quit (Quit: resl) | 01:44 | |
| resl has quit (None) | 01:57 | |
| smohamud has quit (Ping timeout: 480 seconds) | 09:08 | |
| smohamud | Hi Jallah | 10:58 |
|---|---|---|
| jallahkoleah | How are you doing, smohamud? | 11:01 |
| smohamud | Good. How're you? | 11:01 |
| jallahkoleah | I'm good as well | 11:01 |
| jallahkoleah | How's it going? | 11:01 |
| smohamud | Standup - reviewed AMS data definitions draft (added Q's for NSS team), reviewed/replied AMS Workflow Questions doc (added Q's), drafted document with columns from non Main spreadsheet fields (NSS currently maintains several, original meeting captured one). Studied 3NF DB design / how it applies to AMS tables/relationships. Replied Capital Music Network collaboration request (potential work starting soon, Chris Jones a team member with them), | 11:07 |
| smohamud | replied Steve/Vanessa Community Wealth Building site work. Planning requirements drafting meeting with both. Have a functioning branch/(see Gitlab Project) of CJS production branch with minimal code changes (less than the v.8.0, I believe) ready to be worked with. Planned improvements for Project Management process, Development process to be proposed soon. | 11:07 |
| smohamud | Rest of today will be refining AMS data definitions, ensuring all columns are in main Data Definitions draft and continuing work to ensure 3NF (normalized) database. | 11:08 |
| smohamud | Glad to hear that. There's a lot to do but all is well. | 11:09 |
| smohamud | Hi Mulbah. | 11:09 |
| smohamud | I am not sure why we are no longer having a full team here for standup, since Jeff stopped showing. | 11:09 |
| smohamud | Would you guys like to have JS class now? | 11:10 |
| jallahkoleah | +1 | 11:10 |
| mulbah | +1 | 11:11 |
| smohamud | Ok. We have two options. We can go through the main lesson (despite multiple members absent) or we can do a review of all the concepts we've covered to now. | 11:13 |
| smohamud | The main lesson would be finishing up the Operators.js | 11:13 |
| smohamud | Correction: it would be function types. | 11:13 |
| smohamud | (main lesson) | 11:14 |
| smohamud | What do you two prefer? | 11:14 |
| smohamud | https://prod.liveshare.vsengsaas.visualstudio.com/join?B64D2AA52C9DDA0120DF7D2E53ED7483E563 | 11:15 |
| smohamud | (we will be switching to P2P Live Share extension but I will need you both to install the extension between now and next class (Monday). | 11:15 |
| jallahkoleah | I already have that extension | 11:16 |
| smohamud | Good, we only have to wait till everyone else catches up :) | 11:17 |
| smohamud | I don't see either of you in the Live Share. Please join. | 11:17 |
| jallahkoleah | I'm joining | 11:20 |
| smohamud | Mulbah please begin on the Quiz. | 11:20 |
| mulbah | where is the quiz? | 11:21 |
| smohamud | /Quiz | 11:23 |
| smohamud | /1.) In your own words, what's the difference between a statement and an expression | 11:23 |
| smohamud | /2.) Is function functionDeclaration(){ console.log("Random function definition")} always a statement? | 11:23 |
| smohamud | /2.1) If not, what makes it an expression? | 11:23 |
| smohamud | /3.) Briefly explain how Scope of a function is affected by whether it's a function declaration or expression. | 11:23 |
| smohamud | (This quiz was Given last Wednesday but we did not finish the class...) | 11:23 |
| smohamud | And, you were not in attendance. | 11:23 |
| smohamud | Hi Janet :) | 11:24 |
| smohamud | Got you Jallah | 11:24 |
| smohamud | Everyone dropped after the Quiz last time, so we didn't get to cover the class materials. | 11:25 |
| smohamud | Still only Mulbah in session. | 11:26 |
| jallahkoleah | I joined but aren't seeing anything | 11:27 |
| smohamud | Now just Jallah here. | 11:27 |
| jallahkoleah | got it now | 11:28 |
| jallahkoleah | can I give my answers in here or in vs code | 11:29 |
| jallahkoleah | smohamud? | 11:30 |
| smohamud | Here please. | 11:30 |
| jallahkoleah | okay | 11:31 |
| smohamud | Comrades, only Jallah is in and it's been a full 20m. There is a-lot of work to do. Jallah, are you almost done with the Quiz? We can still go over that and discuss. | 11:36 |
| jallahkoleah | 1. The difference between a statement and an expression is; A statement execute or performs an action or the instruction that was given by the user, or in other word, an instruction that tells JS what to do for example; we have let age = 25; this tell JS that when we call out age, it should give the value of age. while expression is the produces the value. | 11:39 |
| smohamud | Solid! | 11:44 |
| jallahkoleah | 2. No, it's not always a statement. Because in this particular position or form, it is a function declaration. 3. A function expression happens when the function is part of an expression - usually when the function is assigned to a variable, passed as an argument or otherwise used where JS expects a value. | 11:50 |
| jallahkoleah has quit (Read error: No route to host) | 11:53 | |
| smohamud | Janet and Mulbah - any questions for me before we end? | 11:54 |
| jkollie has quit (Read error: No route to host) | 11:55 | |
| smohamud | Jallah - for 2 - exactly - it's about the position of the declaration. Is it being assigned (right hand side of the =) or is it standalone acting as a statement. | 11:55 |
| smohamud | *expression | 11:55 |
| smohamud | Good job acknoweldging that functionDeclatations are also *expressions* when passed as an argument to another function. | 11:56 |
| smohamud | An example is using the built-in setTimeout(function(){ console.log("log out this in 100ms")}, 100) | 11:57 |
| smohamud | There, it's also serving as an expression, since setTimeout takes a callback function that executes after the amount of time specified in the second argument) | 11:58 |
| jallahkoleah_ | got it, thanks | 11:58 |
| smohamud | And finally, how about the last question? | 11:59 |
| smohamud | /3.) Briefly explain how Scope of a function is affected by whether it's a function declaration or expression | 11:59 |
| jallahkoleah_ | refreshing on that :) | 11:59 |
| smohamud | Please attempt it with what you know now. | 12:00 |
| smohamud | Wrong answers are valuable! I can help fill the gap. | 12:00 |
| smohamud | And who knows, you might be more prepared than you think. | 12:00 |
| smohamud | Jallah... | 12:03 |
| smohamud | :) | 12:03 |
| smohamud | Go for it. You got this. | 12:03 |
| jallahkoleah_ | This is what I think of it........ Function declarations are hoisted (they can even be called before declaration) and their names are available in their surrounding scope before the declaration is reached. Function expressions are usually assigned to variables, and the scope of the function's name is determined by that variable's declaration (let, const, or var). With let and const, the binding is block-scoped. | 12:04 |
| smohamud | Bingo. Function declarations are hoisted and can be called *before* they're declared. Expressions are *partially* hoisted *if* they use var to declare it. Rather than throw an error, if something tries to call/use the expression *even if* it uses var ftnExpression = function(){} it will be undefined but won't be a reference error. | 12:08 |
| smohamud | Let's run a little test in Live Share to confirm what we expect and then call it a class. | 12:08 |
| smohamud | Sound good? | 12:08 |
| jallahkoleah_ | +1 | 12:11 |
| smohamud | On line 20 we call functionDeclaration and it executes just fine. | 12:18 |
| smohamud | It logs out and can be called. | 12:18 |
| smohamud | Notice that on line 23, we can log out functionExpressionWithVar | 12:19 |
| smohamud | And it will show as "undefined" | 12:19 |
| smohamud | If we try to call it, it says "not a function." This is because that would be the same as doing undefined() [trying to call undefined...] | 12:19 |
| smohamud | What's interesting is when we use "const" to declare the expression. | 12:20 |
| smohamud | What do you expect to happen if we log out the value of functionExpressionWithConst ? | 12:20 |
| smohamud | On line 23 | 12:20 |
| smohamud | Go for it. Remember, it's fine not to know. I *do not* want you to do research for questions during class. | 12:22 |
| smohamud | The point of asking questions during class is specifically to uncover the gaps... | 12:22 |
| smohamud | Don't worry. | 12:22 |
| smohamud | Ok Jallah - I will have to get going today but please share your *own* answer to me via our chat. | 12:26 |
| smohamud | WhatsApp. | 12:26 |
| smohamud | Have a good rest of your day - I have another meeting in 10m. | 12:26 |
| smohamud | Great job today! | 12:26 |
| jallahkoleah_ | okay, thanks for today | 12:26 |
| jallahkoleah_ | I will do just that | 12:26 |
| smohamud has quit (Ping timeout: 480 seconds) | 12:34 | |
| janet_ has quit (Read error: No route to host) | 13:28 | |
| jallahkoleah_ has quit (Remote host closed the connection) | 13:29 | |
| smohamud has quit (Ping timeout: 480 seconds) | 13:54 | |
| mulbah has quit (Remote host closed the connection) | 14:12 | |
| jallahkoleah__ has quit (Ping timeout: 480 seconds) | 14:23 | |
| janet__ has quit (Ping timeout: 480 seconds) | 14:52 | |
| mulbah has quit (Remote host closed the connection) | 14:58 | |
| janet_ has quit (None) | 15:06 | |
| jkollie has quit (Ping timeout: 480 seconds) | 15:09 | |
| resl has quit (Remote host closed the connection) | 15:13 | |
| mulbah has quit (Remote host closed the connection) | 15:31 | |
| mulbah has quit (Remote host closed the connection) | 15:47 | |
| mulbah has quit (Remote host closed the connection) | 16:05 | |
| mulbah07_ has quit (Remote host closed the connection) | 16:06 | |
| smohamud has quit (Ping timeout: 480 seconds) | 20:07 | |
| gabriel_jetro | Hi | 22:51 |
| gabriel_jetro has quit (Read error: Connection reset by peer) | 23:06 | |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!