Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save kellatirupathi/dc44ae57d49b2c46f6a050083b040dc4 to your computer and use it in GitHub Desktop.

Select an option

Save kellatirupathi/dc44ae57d49b2c46f6a050083b040dc4 to your computer and use it in GitHub Desktop.
Transcript for transcript_1xx7GP2FL1CjZIPRGbssax9JPX23byfNI_1_3549_377b29d3d9f2_5.txt
[00:00:00] Nice, nice.
[00:00:01] And tell me more about you.
[00:00:04] Sir, my name is, as I said, my name is Sontavinkar Ramana.
[00:00:08] And I am pursuing final year from KMIT College.
[00:00:13] Yeah, I worked on various projects like PathGen, which is a...
[00:00:21] Which uses AI assistant to generate path for the students who are not aware of how to study and from where he has to start and such type of activities are provided by my project PathGen.
[00:00:36] And I have also worked on legal assistant, which is a driven chart, but where we can get responses from a legal charter, legal chart from using APIs from charge EPT.
[00:00:51] I have worked on both those projects and.
[00:00:55] I have also attended various workshops like IA Gen Ys and MCPs and more.
[00:01:06] Okay, good to know about you.
[00:01:10] I am Hardik and I am SD2 at Zetap.
[00:01:14] And I will be taking your JavaScript questions.
[00:01:18] Are you comfortable with JavaScript?
[00:01:20] Yes, sir.
[00:01:21] Okay.
[00:01:24] Can you share your screen?
[00:01:26] Yes.
[00:02:00] I'm sending one document in comment.
[00:02:02] Can you open that?
[00:02:05] In mail, of course.
[00:02:06] I'll be right here.
[00:02:07] Chat, chat.
[00:02:21] Please open chat.
[00:02:38] It's not working.
[00:02:41] Give me a refresh.
[00:02:45] Join again.
[00:02:47] Okay.
[00:02:51] Just your question.
[00:03:24] Hello.
[00:03:46] Hello.
[00:04:10] Are you sure?
[00:04:11] Can you share screen again?
[00:04:52] Yes, sir.
[00:04:52] Yeah, please try to solve first question.
[00:04:55] See the first question.
[00:04:56] What will be the output?
[00:04:57] You have to guess the output.
[00:05:09] 50 and 20, sir.
[00:05:11] Okay, please write.
[00:05:15] Please write there.
[00:05:16] Okay.
[00:05:25] Not able to write here.
[00:05:30] 50 and 20.
[00:05:33] Next question.
[00:06:03] Hello, sir.
[00:06:06] Sorry?
[00:06:08] We can't call the function before declaring night service.
[00:06:13] Why?
[00:06:15] Because when we call first the function and it can't, JavaScript runs one by one.
[00:06:24] Yeah, so we can't get the hello console.
[00:06:30] Okay, please write whatever the output will be.
[00:07:02] Okay, next question.
[00:07:08] It's undefined.
[00:07:10] Please write.
[00:07:12] Why undefined?
[00:07:13] Sir, variable is hosting.
[00:07:16] First we declare a variable, but here it's printing earlier, sir.
[00:07:22] Then we start declaring.
[00:07:40] Next question.
[00:08:34] It's going down.
[00:08:35] No problem.
[00:08:36] Yeah, no problem.
[00:08:40] Yeah, 3 times 3.
[00:08:42] Why?
[00:08:43] Sir, it's set timeout, no sir.
[00:08:46] First it iterates through for loop, then it comes to set timeout.
[00:08:51] Yeah, timeout function.
[00:08:52] So, it gets 3 which is last i variable value.
[00:08:57] Why it did not get 1 and 2?
[00:09:00] Sir?
[00:09:01] Why did it not get 1 and 2?
[00:09:03] 1 and 2 because as we kept set timeout, firstly we run for loop because set timeout, I mean, it stays, it won't run sir.
[00:09:18] Firstly, it runs for loop, then it comes to set timeout.
[00:09:22] So, it even...
[00:09:24] It totally runs 1, 2, 3 and totally it completes the iterations.
[00:09:29] After that, set timeout will take the i value and print it.
[00:09:34] Why it does not run?
[00:09:52] Okay, copy this code for loop.
[00:09:55] Okay.
[00:09:57] And open any JavaScript.
[00:10:00] compiler online
[00:10:12] paste it and run it
[00:10:17] Let's see what we get.
[00:10:24] Not only right here one two three ah instead of if in the place of let if we use where variable uh where where then we get as i said sorry i
[00:10:38] i said it reverse it why why let's fix this problem you said that the remote does not run you said
[00:10:48] You said set timeout does not run.
[00:10:51] Yes, sir.
[00:10:51] As if we, you know, I didn't see later in list.
[00:10:56] Yeah, that's why you said set timeout does not run.
[00:11:01] It will run.
[00:11:02] It will run.
[00:11:03] But it after running of for loop, it takes the last iteration and runs the set timeout.
[00:11:11] If it is about last iteration, why let and var fixes it?
[00:11:23] Where is it?
[00:11:35] That is a...
[00:11:47] Okay, what do you do?
[00:11:48] Write in line number 8.
[00:11:53] Line number 8, write console.log i.
[00:12:17] Run it.
[00:12:24] Now change to VAR.
[00:12:33] Now run it.
[00:12:44] What happened?
[00:12:47] Sir, here iterated three times iterated for I mean for get printed for using for loop three times and last as I.
[00:13:03] And then using set timeout after 500 millisecond, we get printed last four.
[00:13:13] But tell me one thing, why previously we got error?
[00:13:20] Change let var to let.
[00:13:24] Why we are getting error in this case?
[00:13:30] Why light is giving us error?
[00:13:33] It says I is not defined here.
[00:13:37] Why?
[00:13:41] If for making it, we should define it earlier, then it may be okay.
[00:13:49] What is the exact reason?
[00:13:53] What is the difference between light and war?
[00:14:00] Let we can change anytime, anywhere, sir.
[00:14:03] And where we cannot do it.
[00:14:06] You are speaking opposite, I guess.
[00:14:09] Sir?
[00:14:09] You are saying opposite, I guess.
[00:14:13] I can't get it.
[00:14:16] Okay, that's fine.
[00:14:17] Let's jump to next question.
[00:14:29] Scroll down.
[00:14:32] This.
[00:15:01] What is output?
[00:15:02] 10, sir.
[00:15:03] Okay, right.
[00:15:04] Why 10?
[00:15:06] Sir, we changed the value of i after getting...
[00:15:12] But before that, we are console.log with 0, right?
[00:15:16] Sir?
[00:15:17] We are doing console.log with 0 millisecond of delay.
[00:15:22] Oh, yes, sir.
[00:15:23] Yeah.
[00:15:24] What is the answer then?
[00:15:26] Sorry, zero, sir.
[00:15:27] Yeah.
[00:15:31] Final answer.
[00:15:45] I think it's 10, sir.
[00:15:48] Why do you think?
[00:15:49] Even though set timeout we kept 0, it runs faster than that.
[00:15:53] No, sir.
[00:15:54] So, it prints 10.
[00:15:59] Okay, next question.
[00:16:01] Next question is you have to convert the hello world into a title case.
[00:16:07] So it should be capital W should be capital.
[00:16:12] Okay.
[00:16:13] Okay.
[00:16:25] You can implement on that compiler.
[00:16:29] Okay.
[00:16:30] Copy this and implement on compiler.
[00:23:37] I just don't do it.
[00:23:48] I can't draw the other person's color.
[00:23:50] It's hard.
[00:23:51] Don't say that.
[00:24:13] Okay, can you copy this code?
[00:24:20] Let me see.
[00:24:22] Just copy this code.
[00:24:26] And paste in that document.
[00:24:34] Okay, thank you.
[00:24:38] Thanks.
[00:24:39] Yeah, thanks a lot.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment