| mulbah07_ has quit (Remote host closed the connection) | 02:57 | |
| smohamud has quit (Remote host closed the connection) | 07:55 | |
| smohamud has quit (Remote host closed the connection) | 09:15 | |
| smohamud has quit (Ping timeout: 480 seconds) | 09:50 | |
| mulbah has quit (Remote host closed the connection) | 10:04 | |
| mulbah has quit (Remote host closed the connection) | 10:09 | |
| mulbah has quit (Quit: Leaving) | 10:15 | |
| gabriel_jetro | Good morning dcammue and thomasboimah | 10:59 |
|---|---|---|
| thomasboimah | Good morning gabriel_jetro | 10:59 |
| smohamud | For those joining classs today: https://prod.liveshare.vsengsaas.visualstudio.com/join?7E2A6E679810A881B36035845040120E8AC1 | 11:00 |
| smohamud | Please begin connecting. | 11:00 |
| smohamud | And good afternoon :) | 11:01 |
| thomasboimah | I did not do much these past few days because I was not feeling too well, but thank God I am feeling fine now and ready to get back to work. After the JavaScript class today, I will be meeting with Smohamud to plan out how we’ll tackle the Infra project. I will also log in to my UoPeople portal to complete my assignment. I will also try to finish turning the Jetrowebdevelopment branch on LO into deployment repositories, following the same patter | 11:01 |
| thomasboimah | n zOnny used for the Claudia Jones School branch. No blockers. | 11:01 |
| thomasboimah | ACTION done | 11:01 |
| dcammue | On yesterday, I attended the Jetro Web meeting and we had a great conversation about who to represent or hold Jetro account at the Credit Union and we voted jkollie and fkoikoi. today, i will keep my research on tax basic | 11:02 |
| dcammue | no blocker | 11:02 |
| dcammue | ACTION done | 11:02 |
| smohamud | Standup: Followed up w/NSS team with workflow question for them to answer. Prepped JS class. Began reading through FixMyCd App for client. | 11:02 |
| smohamud | No blockers. | 11:02 |
| dcammue | Good morning smohamud, gabriel_jetro, and freena_ | 11:02 |
| jkollie | Yesterday I get to work on the about and services page of one of the site am building and practicing on, I also attended a very productive jetro meeting last night regarding the credit union. Today am going to do some practices on JavaScript from what I've been reading. No blocker | 11:03 |
| dcammue | good morning jkollie | 11:03 |
| jkollie | ACTION done | 11:03 |
| smohamud | Good morning. For those attending class, again here's the link. Please begin connecting: https://prod.liveshare.vsengsaas.visualstudio.com/join?7E2A6E679810A881B36035845040120E8AC1 | 11:03 |
| jkollie | Good morning dcammue | 11:03 |
| freena_ | Yesterday i attended a meeting that was held by dcammue, Today I want to work on the css part of my contact page. | 11:04 |
| freena_ | ACTION done | 11:04 |
| freena_ | Good morning all | 11:04 |
| smohamud | Morning Freena | 11:04 |
| smohamud | You all are doing great. Great updates. Does anyone want help with anything they're working on? | 11:05 |
| jkollie | Good morning smohamud | 11:06 |
| jkollie | -1 for now | 11:06 |
| freena_ | For me -1 for now but will reach out if i am stock with something later | 11:06 |
| smohamud | Currently, it's just me and Thomas in the Live Share coding session by the way: https://prod.liveshare.vsengsaas.visualstudio.com/join?7E2A6E679810A881B36035845040120E8AC1 | 11:06 |
| smohamud | Good morning. Sounds good | 11:06 |
| dcammue | Thanks | 11:07 |
| smohamud | Daniel - could you get your feedback about the class to me before the end of today? It should take 5 minutes or less. | 11:07 |
| smohamud | Gabriel - could you also do so? I have only gotten from Jallah and Thomas. | 11:07 |
| dcammue | You mean i should state me feedback about the class? | 11:08 |
| dcammue | now? | 11:08 |
| smohamud | Thomas and Daniel, please look at the Quiz at the top and prepare answers. | 11:08 |
| smohamud | Yes, please. After class, ideally tonight if you can. | 11:08 |
| smohamud | It's in the Group Chat. | 11:08 |
| smohamud | The quiz now, the feedback later :) | 11:09 |
| smohamud | It's just Thomas and I in the session. Is anyone else trying to connect besides Daniel? | 11:10 |
| smohamud | session (again): https://prod.liveshare.vsengsaas.visualstudio.com/join?7E2A6E679810A881B36035845040120E8AC1 | 11:11 |
| smohamud | Janet - I haven't heard from you and noticed you're still self-studying JS. | 11:13 |
| smohamud | Is there a reason you prefer to self-study rather than join our Intro class? | 11:13 |
| smohamud | No pressure to join, just curious. | 11:14 |
| jkollie | I've been joining actually | 11:14 |
| jkollie | It's just that am using my phone to join the hexchat right now that why | 11:14 |
| smohamud | Ok, and you can't join the VS Code? | 11:15 |
| smohamud | Still just Thomas and I. | 11:15 |
| jkollie | I need my laptop to join the vs code smohamud | 11:15 |
| smohamud | Would there be a better time for us to meet, when you have your laptop avaialbe? | 11:16 |
| jkollie | am about to join | 11:16 |
| smohamud | Thomas - do you have answers for the Quiz? | 11:16 |
| dcammue | my anser to the quiz: 1. will out put "true", and 2. will out put "false", and 3. first statement will output "false", and second statement will out put "true" | 11:17 |
| thomasboimah | yes | 11:17 |
| thomasboimah | try to compose my answer | 11:17 |
| dcammue | *answer | 11:17 |
| smohamud | Thank you Daniel. Sounds good Thomas. | 11:17 |
| smohamud | dcammue, is there a reason you're not in session? | 11:18 |
| smohamud | I need help knowing why it's taking 10+ minute for everyone to join the session... Besides Janet, Dcammue is there a common issue you're facing? | 11:19 |
| thomasboimah | 1. objectTwo is assigned the same reference as objectOne. Both point to the exact same object in memory, so == compares references and returns true. 2. Even though objectOne and objectThree have the same properties and values, they are different objects in memory. The == operator compares references, not content, so it returns false. 3. part one (1) numOne > 100 is false (100 is not greater than 100), so the entire condition is false, and the else | 11:19 |
| thomasboimah | block runs. 4. part two(2) It would print False because numOne > 100 is false. | 11:19 |
| dcammue | am i not in the live share? | 11:19 |
| dcammue | sorry, i just notice it | 11:20 |
| dcammue | my bad;, i idid not check it up | 11:20 |
| smohamud | No problem. | 11:20 |
| smohamud | Gabriel, freena, are you planning to join? | 11:21 |
| dcammue | please confirm | 11:21 |
| dcammue | please confirm smohamud | 11:22 |
| smohamud | Daniel - do you automatically get dropped from the session? | 11:22 |
| dcammue | yes | 11:22 |
| smohamud | Dcammue, I will confirm by running the script :) | 11:22 |
| dcammue | please approved me | 11:22 |
| smohamud | Ok, have you disabled all the VS extensions besides the Live Share? | 11:22 |
| dcammue | that's why i mean | 11:22 |
| smohamud | Ok, I'm not seeing the approval request, sorry. Please send again. | 11:23 |
| dcammue | smohamud, please check | 11:24 |
| smohamud | I'm looking. It says you left a minute ago... | 11:25 |
| dcammue | thanks | 11:26 |
| smohamud | Great, we have everyone now. It's possible because I had a second VS Code window open, that led to an issue. | 11:26 |
| smohamud | We've got 3 in session, if anyone else wants to join let me know | 11:26 |
| smohamud | Ok, we're shooting for 45m today MAX 1hr. | 11:27 |
| smohamud | Janet, have you answered the Quiz questions? | 11:27 |
| jkollie | Not yet, | 11:28 |
| smohamud | Would you like to? It's a tough quiz based on last week's lessons. | 11:28 |
| smohamud | Tough for anyone who hasn't explored reference vs value in JS | 11:29 |
| smohamud | Yes, no? | 11:31 |
| jkollie | Let me try | 11:31 |
| smohamud | Ok, sounds good. Please attempt in the next two minutes. | 11:31 |
| smohamud | We will get moving at 2:33pm, it's okay if you haven't completed all. | 11:31 |
| smohamud | Thomas and Daniel. Please read the notes on Statements and Program Structure below the Quiz. That's where we're starting and it defines Statements vs. Expressions, building blocks of all JS programs. | 11:32 |
| smohamud | Ok Janet, can you share what you have so far? | 11:33 |
| smohamud | No pressure, I know we're a bit rushed here. | 11:33 |
| jkollie | It's okay, am still trying to understand better | 11:34 |
| smohamud | That's fine. I encourage to share even when you're unsure because the wrong answer is more valuable to learning that the right answer :) | 11:35 |
| smohamud | We identify the gap and can fill it in. | 11:35 |
| smohamud | Moving on, let's run it! | 11:35 |
| smohamud | True. False. False. True. | 11:36 |
| smohamud | Both of you who answered nailed it. Thomas, I appreciate you sharing your reasoning too. Your response shows me you're building a deep, correct understanding. | 11:36 |
| smohamud | Ok, today's on Statements and Expressions. | 11:36 |
| smohamud | And Bindings. | 11:36 |
| smohamud | Statements: Perform actions. For loop, if statement, variable declaration, reassignment etc. | 11:37 |
| smohamud | Expressions: produce a value. The result of 5+5, the right-hand side of a variable declaration. | 11:38 |
| smohamud | ^If it's a function expression. | 11:38 |
| smohamud | Or, if it's a literal. Like "5" or 42; these are expressions, they're able to be treated as values in JS. | 11:39 |
| smohamud | Is everyone following? | 11:39 |
| jkollie | +1 | 11:40 |
| thomasboimah | +1 | 11:40 |
| dcammue | +1 | 11:40 |
| smohamud | Great. | 11:40 |
| smohamud | Now, as mentioned in a previous class, programs run from line 1...to the end. In between, you'll find a Statements and Expressions. Statements are what move the program forward, managing the logical flow. Statements can contain expressions and often do. | 11:41 |
| smohamud | Imagine an if-statement like the one I'm writing in the shared document. Who can identify an expression in this? | 11:42 |
| smohamud | Line 65. | 11:43 |
| thomasboimah | smohamud, i drop share | 11:43 |
| thomasboimah | can you accept me request | 11:43 |
| thomasboimah | *my | 11:43 |
| smohamud | Ok, two people dropped. | 11:44 |
| smohamud | Yes, I can accept. | 11:44 |
| smohamud | dcammue, we lost you too. | 11:46 |
| jkollie | The *if* statement. smohamud | 11:46 |
| thomasboimah | nice jkollie which is the 100 > 99 | 11:47 |
| jkollie | 99 is less than 100 | 11:47 |
| smohamud | Great job, both of you. | 11:47 |
| jkollie | Thanks | 11:47 |
| dcammue | can you please approve me | 11:48 |
| smohamud | Done | 11:49 |
| smohamud | Yes, that's the expression. It evaluates to a Boolean value, False. Therefore, it's an expression. | 11:49 |
| smohamud | Moving on. To Function Expressions vs. Function Delcarations. Two terms we're familiar with by now. | 11:50 |
| smohamud | So, with function expressions it means that rather than jump right in and use the function keyword. | 11:52 |
| smohamud | Like function getRentPrice(){ } | 11:52 |
| smohamud | we *assign* it to a variable and on the *right* side we can use the function keyword and define the function. | 11:53 |
| smohamud | The critical thing to note is that the function expression is referring to how/where the function keyword is being used. | 11:53 |
| thomasboimah has quit (Remote host closed the connection) | 11:54 | |
| smohamud | A function declaration is *not* an expression. It does not yield a value on its own. See line 81. | 11:56 |
| smohamud | More correctly, it's no serving as a value, the JS engine treats it differently. It sees *function* with no assignment and as we know, it *hoists* the function. | 11:57 |
| smohamud | Among other things, but that's the big one. | 11:57 |
| smohamud | Is everyone following so far? | 11:57 |
| smohamud | Any questions? | 11:57 |
| smohamud | Looks like you've dropped Thomas | 11:57 |
| dcammue | +1 | 11:58 |
| jkollie | I'm following | 11:58 |
| dcammue | so for the expression the says, let y = (x=100);, will x === y? | 11:59 |
| smohamud | Ok, so, let's run 80 and 81 and see the output. | 11:59 |
| smohamud | Great question dcammue, we'll get there in just a minute. | 11:59 |
| smohamud | And test it directly. | 11:59 |
| dcammue | okay | 11:59 |
| smohamud | On line 70, the function itself is an expression. AND the return statement has an expression, too. 2+2. | 12:00 |
| smohamud | Output is 4. | 12:00 |
| smohamud | For the function declaration on line 76, logging out it's output gives us undefined. | 12:01 |
| smohamud | Is undefined a value? | 12:01 |
| smohamud | That's a question for you guys. | 12:02 |
| dcammue | default value | 12:02 |
| smohamud | Good. So it is a value. | 12:03 |
| smohamud | Even though the return produces "undefiend" it *does not* contain an expression. Exactly because it *is* the default value, built-in to how function return values operate in JS. | 12:04 |
| smohamud | Any questions so far? | 12:04 |
| thomasboimah | -1 from me | 12:05 |
| smohamud | To be clear --- the Return statement *does not* contain an expression. | 12:05 |
| smohamud | Another question, is a function call, like functionDeclaration() on line 80 an expression? | 12:06 |
| smohamud | Anyone? | 12:08 |
| dcammue | line 80 is just a function call in the console.log | 12:09 |
| thomasboimah | sure dcammue a function declaration | 12:10 |
| smohamud | Thank you. Now, does the function call produce a value? | 12:10 |
| dcammue | and along with a text expressing what the output is about | 12:11 |
| thomasboimah | yes | 12:11 |
| smohamud | Ok, so is it a statement or an expression in JS terms? | 12:11 |
| thomasboimah | statement | 12:11 |
| smohamud | dcammue - yes it has all that too, but I'm asking you to imagine it was not attached to the log. Just a lone function call. | 12:12 |
| smohamud | Thomas, thanks for your answer. Can you explain why you think it's a statement? | 12:12 |
| smohamud | We're talking about the call functionDeclaration() | 12:12 |
| smohamud | dcammue, are you following? | 12:13 |
| smohamud | Janet -- how are you doing? | 12:13 |
| jkollie | Pretty well smohamud | 12:13 |
| smohamud | Good. Do you think the call - functionDeclaration - is a statement or an expression? | 12:14 |
| smohamud | functionDeclaration()* | 12:14 |
| smohamud | Dcammue, we lost you in Live Share. | 12:15 |
| thomasboimah | I think the confusion is that the action of calling a function feels like a statement because it 'does something.' But in JavaScript, what matters for expressions is that they produce a value and function calls do exactly that. | 12:15 |
| smohamud | Yes, it's an edge case where it's both an expression and statement. It's performing an action and also yields a value. | 12:17 |
| dcammue_ | sorry i dropped off | 12:18 |
| smohamud | The last thing is a good rule of thumb: if you can assign it to a variable, it's an expression. | 12:18 |
| dcammue has quit (Ping timeout: 480 seconds) | 12:19 | |
| smohamud | Variable assignments require a value. | 12:19 |
| smohamud | In JS, can't do x = if(10>2){console.log("10 is greater than 3")} | 12:19 |
| smohamud | but you can do x = functionDeclaration() and that will not error out because it yields a value, undefined. | 12:20 |
| smohamud | Finally, when debugging, you will come across "invalid expresion" or "invalid assignment" and that will point you to somewhere that's expecting a valid expression that produces a value vs. something else. | 12:20 |
| smohamud | Ok, we're out of time. We will cover bindings next time. | 12:21 |
| smohamud | Does anyone have any questions before we call it a day? | 12:21 |
| dcammue_ | -1 | 12:22 |
| smohamud | Ok, anyone else? | 12:25 |
| smohamud | Thomas - are you good to switch gears to FixMyCd in a half hour, 1pm? | 12:27 |
| thomasboimah | sure | 12:27 |
| smohamud | Ok, I'll be back shortly. | 12:27 |
| smohamud | Great job today everyone. Really good to have you join us, Janet. Keep coming back! | 12:27 |
| dcammue | Thanks smohamud for the time today | 12:28 |
| thomasboimah | dcammue, check your private chate | 12:29 |
| thomasboimah | *chart | 12:29 |
| smohamud has quit (Read error: Connection reset by peer) | 12:29 | |
| dcammue | cool | 12:29 |
| dcammue | can we go now? | 12:30 |
| dcammue | thomasboimah, | 12:30 |
| thomasboimah | dcammue, after my meet with smohamud on Dr. hubbard please | 12:31 |
| thomasboimah | *meeting | 12:31 |
| thomasboimah | Project | 12:31 |
| dcammue | okay | 12:31 |
| freena_ has quit (Quit: Connection closed for inactivity) | 13:11 | |
| thomasboimah has quit (Quit: Leaving) | 14:07 | |
| smohamud has quit (Read error: Connection reset by peer) | 14:07 | |
| gabriel_jetro has quit (Quit: Connection closed for inactivity) | 14:28 | |
| jkollie has quit (Quit: Connection closed for inactivity) | 14:51 | |
| dcammue has quit (Ping timeout: 480 seconds) | 19:33 | |
| resl has quit (Quit: resl) | 20:24 | |
| dcammue_ has quit (Remote host closed the connection) | 21:48 | |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!