Enable contrast version

Tutor profile: Jay P.

Inactive
Jay P.
Senior Software Engineer Looking to Help
Tutor Satisfaction Guarantee

Questions

Subject: Javascript Programming

TutorMe
Question:

What is a “closure” in JavaScript? Provide an example.

Inactive
Jay P.
Answer:

A closure is an inner function that has access to the variables in the outer (enclosing) function’s scope chain. The closure has access to variables in three scopes; specifically: (1) variable in its own scope, (2) variables in the enclosing function’s scope, and (3) global variables. var globalVar = "xyz"; (function outerFunc(outerArg) { var outerVar = 'a'; (function innerFunc(innerArg) { var innerVar = 'b'; console.log( "outerArg = " + outerArg + "\n" + "innerArg = " + innerArg + "\n" + "outerVar = " + outerVar + "\n" + "innerVar = " + innerVar + "\n" + "globalVar = " + globalVar); })(456); })(123);

Subject: Databases

TutorMe
Question:

What is the difference between the WHERE and HAVING clauses?

Inactive
Jay P.
Answer:

When GROUP BY is not used, the WHERE and HAVING clauses are essentially equivalent. However, when GROUP BY is used: The WHERE clause is used to filter records from a result. The filtering occurs before any groupings are made. The HAVING clause is used to filter values from a group (i.e., to check conditions after aggregation into groups has been performed).

Subject: C Sharp Programming

TutorMe
Question:

Explain the differences between an Interface and an Abstract Class in .NET.

Inactive
Jay P.
Answer:

An interface merely declares a contract or a behavior that implementing classes should have. It may declare only properties, methods, and events with no access modifiers. All the declared members must be implemented. Neither interfaces nor abstract classes can be instantiated.

Contact tutor

Send a message explaining your
needs and Jay will reply soon.
Contact Jay

Request lesson

Ready now? Request a lesson.
Start Lesson

FAQs

What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Lesson" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.