Dhananjay Kumar

Microsoft MVP, Google GDE

  • Speaking
  • Angular Master class
  • A JavaScript function inside a Block Scope: Simplified

    Scoping determines the visibility of a variable, an object, or a function.  For example, a variable defined inside a function is visible or can be accessed only inside that particular function.   JavaScript has 4 types of scope.  Global scope Functional scope Lexical Scope Block Scope Out of the above four scoping, Block Scoping became […]

    Dhananjay Kumar , Microsoft Most Valuable Professional , Google Developer Expert, Trainer and Consultant

    June 24, 2020
    JavaScript
    Interviews, Javascript, scope, Tips
  • How to use useClass with Tree Shakable Services in Angular

    Recently, I was asked that how can we use providers such as useClass inside a Tree Shakable service?   By default, Angular services are tree shakable, which means if the application does not use them, they are not part of the final bundle. So, if you create a service using CLI as, ng g s Log […]

    Dhananjay Kumar , Microsoft Most Valuable Professional , Google Developer Expert, Trainer and Consultant

    June 23, 2020
    Angular
    Angular, Dependency Injection, services, Video, Webinars
  • How to manually pass the value of ‘this’ object in a JavaScript function

    Every JavaScript function has a ‘this’ object, and the value of ‘this’ object depends on the way you call the function. To pass the value of ‘this’ manually, you need to call the function indirectly. In JavaScript, you call a function indirectly to pass the value of ‘this’ object manually. Manually calling a function is […]

    Dhananjay Kumar , Microsoft Most Valuable Professional , Google Developer Expert, Trainer and Consultant

    June 23, 2020
    JavaScript
    Interviews, Javascript, Tips
  • Do Angular useExisting providers create a new object of service?

    Short answer is NO, the useExisting provider use object created by other tokens. Read on, To learn more about such concepts, join a free webinar on Saturday, 20 June 4 PM IST. RSVP here: https://www.meetup.com/Geek97/events/271292371/ In Angular, providers determine how an object of a particular token gets created. That means whether Angular creates a new […]

    Dhananjay Kumar , Microsoft Most Valuable Professional , Google Developer Expert, Trainer and Consultant

    June 19, 2020
    Angular
    Angular, providers, services, useExisting
  • How to make a property non-enumerable in JavaScript?

    By default, all the properties of JavaScript objects are enumerable. That means you can enumerate them in a for loop or read them using the Object.values(). Let us consider an object Dog as shown below, You can enumerate all properties and read their values using the for loop or Object.values() method as shown below, Now […]

    Dhananjay Kumar , Microsoft Most Valuable Professional , Google Developer Expert, Trainer and Consultant

    June 18, 2020
    JavaScript
    Interviews, Javascript, Tips
  • Video – Extension Method in C#

    This video explains Extension Method in C#

    Dhananjay Kumar , Microsoft Most Valuable Professional , Google Developer Expert, Trainer and Consultant

    June 16, 2020
    CSharp, Video
    C#, Video
  • How to merge arrays using spread operator in JavaScript?

    Have you come across a requirement to merge two or more arrays  into another array? Let us say, you have two arrays as shown below, You need to merge them in another array with optional extra elements in the resultant array. JavaScript array spread operator makes it very simple to merge arrays. You can merge […]

    Dhananjay Kumar , Microsoft Most Valuable Professional , Google Developer Expert, Trainer and Consultant

    June 13, 2020
    JavaScript
    Interviews, Javascript, Tips
  • How to create Private Properties in JavaScript.

    We don’t have Access Modifiers in JavaScript, and all properties of an object are public, which means you can read and modify them outside the object. But what if you have a requirement to create private properties?  Consider Product object as mentioned below, By default, JavaScript allows you to read and modify all the properties. […]

    Dhananjay Kumar , Microsoft Most Valuable Professional , Google Developer Expert, Trainer and Consultant

    June 12, 2020
    JavaScript
    Interviews, Javascript, Tips
  • How to use different syntax for Angular Interpolation

    How to use different syntax for Angular Interpolation

    Dhananjay Kumar , Microsoft Most Valuable Professional , Google Developer Expert, Trainer and Consultant

    June 10, 2020
    Angular
    Angular, Interviews
  • Video- Simplifying Dependency Injection, Services, and Providers in Angular

    This video explain DI, Services, and Providers in Angular

    Dhananjay Kumar , Microsoft Most Valuable Professional , Google Developer Expert, Trainer and Consultant

    May 27, 2020
    JS Videos
    Angular, Dependency Injection, services, Video
←Previous Page
1 2 3 4 5 6 … 92
Next Page→

Website Built with WordPress.com.

  • Follow Following
    • Dhananjay Kumar
    • Join 7,431 other followers
    • Already have a WordPress.com account? Log in now.
    • Dhananjay Kumar
    • Edit Site
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar