Activity
Mon
Wed
Fri
Sun
Oct
Nov
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
What is this?
Less
More

Owned by Hayk

Dev Mastery

41 members • Free

Break out the mid-tier developer trap. Get to Senior, fast.

Memberships

Developer Pro

56 members • Free

Achieve Greatness Accelerator

140 members • Paid

Kourse

835 members • Paid

Skoolers

174.8k members • Free

Course Creation Academy

340 members • Free

Krusade Library

838 members • $150/y

335 contributions to Dev Mastery
Traditional Function referring to the global objects/window in browser
Hayk, I was studying the this keyword video in the JavaScript course, but I was wondering when you said the traditional function was referring to windows in the browser, did you mean only when it is called outside of the function, like in this example below, where I wrote const fn = myObj.showWindow; fn(); ? This is the example ai gave me and ai said that showWindow is a traditional function inside the object, but when called as fn(), this refers to the global object (window in browser), not myObj anymore. Ai also said the only difference between a traditional function and a traditional method is the the traditional function is written using a colon, like the colon after showWindow below. Ai also said the difference between traditional function and method is that traditional function use the colon (:), it can be assigned to a variable before being called out of the function, while the traditional method is written without a colon, and it is called directly as object key, like it is myobj.function name. Is this correct about what the ai said and is that what you was saying when you said the this keyword in the traditional function refers to the global object/window in your browser? const myObj = { name: 'Amber', showWindow: function() { console.log(this); // Will reference window if called as a standalone function } }; const fn = myObj.showWindow; // Assign method to variable fn(); // 'this' now refers to window (global object in browser)
1 like • 4d
The key point is that this binding in JavaScript depends on the call site (how the function is invoked) not how it's defined
0 likes • 5h
Yes, that's mostly correct @SeaAmber Silver. In summary what makes these methods access global objects is HOW you call them not how or where they're written. Also you don't need to set window.property for functions to reference global objects because any global variable automatically becomes a window property:
What happened to my Firebase DB?
Hey guys, I'm trying to use my Task App that I created, but the data is not loading. It's simply stalling. What is going on here? The last thing I remember is that the DB was in some sort of test mode, but I wasn't really sure if I could make it public since I have ZERO security on it haha.... Here is a screen shot of what the console says on the app. Any idea how I can troubleshoot this and get it working again? Thanks! @Hayk Simonyan
What happened to my Firebase DB?
0 likes • 5h
@Miguel Rosales most likely your Firestore rules expired. If your db was in test mode then Firestore usually adds a rule with expiration date like "allow read, write: if request.time < timestamp
0 likes • 5h
there should be a Rules tab, from there find the rule related to your database and either update the timestamp to some other date, or just remove that condition so that it doesn't cause issues later
New/Edit Record Page PR
Team, the updates for the desktop New/Edit Record pages are up for review, looking forward to the feedback! Thank you. https://github.com/DeveloperMastery/money-manager-app/pull/17
1 like • 10d
@Costin Georgescu great, I'll get back to this asap
0 likes • 2d
@Costin Georgescu apologies it took a while this time to get back to this. I left one last comment, it has to do with the add button we have which is not visible for mobile. Otherwise the changes look good and we can merge it after this last fix.
Live interview for a 150k developer position
In today’s meeting, we reviewed a recording of a live interview I did for a ~$150k developer position. - Watch me pass the HR screening stage here - Watch me pass the Live coding assessment here In the next session, we’ll review stage 3 which will be projects discussion, system design questions, and another live coding round. See you there!
0 likes • 2d
Let me know if you have any questions about the first 2 stages below 👇
Finished building a second JS project (with the help of AI) and fixed previous project issues
I wanted to provide an update on my journey. I finished building the second project I was building, it is a healthy meal planner which lets you look up meals from an API and can add them to a meal plan calendar to track your meal planning for the week, you are also able to add favorites and generate a shopping list. I also made the suggested changes (most if not all) from @Hayk Simonyan regarding the gym progress visualizer and deployed both of these projects on Vercel. Then I added them to my portfolio which I deployed too, the goal is just to have something up so I can apply for jobs because I haven't been applying for jobs in months since I had no hope in having a chance without a portfolio and a couple projects but now I do so I will continue my job search after editing my resume while improving my projects or building new ones and improving my skills overtime inshallah. I'm probably going to focus on some smaller projects in JS from scratch because I felt I relied on AI too much, especially towards the end of the project then continue with React and go from there. Portfolio: https://joseph-hermansen-portfolio.vercel.app/ Gym Progress Visualizer: https://gym-progress-visualizer.vercel.app/ Healthy Meal Planner: https://healthy-meal-planner-beta.vercel.app/
0 likes • 6d
https://www.loom.com/share/7f1ee0eb52564e46a9dc79bded39c73e?sid=286dd7e8-b019-4f8d-b98c-bd97abfbacf5
1 like • 4d
@Joseph Hermansen good questions, the minimal things you should have I think are 1-2 big projects that look real. The thing with the projects that you build as a single person is as you said, it takes way too long to make them look like a real project that has users. That's why we have the team project, I recommend you be a bit more active in it instead, and you can list the "Tasker Tracker for the United States Air Force" along with that project in your resume. You don't have to understand the whole setup, even if you just work on the frontend React app a bit, I'll then show you how to present it in your resume. After that you can start applying for frontend roles. I suggest you to find some time for one of our upcoming group calls and join, and we can discuss this further. If you don't find time during the scheduled hours, let me know.
1-10 of 335
Hayk Simonyan
7
5,839points to level up
Day Job: I’m a remote developer earning a multi-six-figure income. Side Hustle: I teach everything I know inside Dev Mastery.

Active 2h ago
Joined Nov 5, 2024
Powered by