Dhananjay Kumar

  • Speaking
  • Angular Master class
  • The simplest way to disable console.log for Production build in Angular?

    I work with different developers, and most of them rely on console.log () or other console methods for development. They use the console to print various values to debug while doing the development. I call this approach console-driven development. Cool name, right? These console functions become overwhelming in production as users can see many things […]

    Dhananjay Kumar | Angular Teacher | Angular Consultant | ng-India

    April 6, 2022
    Angular
    .console, Angular
  • Make all properties optional using Partial in TypeScript

    The utility type Partial<Type> makes all properties of a type optional. Using a scenario, let us try to understand Partial<T> in TypeScript. So, you have a type called Product, that is created as below:   export interface Product {   Id: string;   Title: string;   Price: number;   inStock: boolean;   Quantity: number; } And there is a function to update the price of a product as shown […]

    Dhananjay Kumar | Angular Teacher | Angular Consultant | ng-India

    April 2, 2022
    JavaScript, TypeScript
  • Video – Master JavaScript ‘this’ in 30 Mins

    Do you know, there are four ways to calculate the value of ‘this’ inside a JavaScript function?  Some pointers about ‘this’  Every function has it’s own ‘this’  An arrow function does not have it’s own ‘this’ The value of ‘this’ depends on, how that function is called.  The value of ‘this does not depend on […]

    Dhananjay Kumar | Angular Teacher | Angular Consultant | ng-India

    August 7, 2021
    JavaScript, Video
    Functions, Javascript, this, Videos
  • JavaScript function is also a constructor?

    JavaScript function is also a “constructor.” You must have heard it many times, haven’t you? Well, that is a wrong way of interpreting the JavaScript function; even though you can create an object using a function, it does not mean you can call it a constructor. Let us discuss it: There are four ways to […]

    Dhananjay Kumar | Angular Teacher | Angular Consultant | ng-India

    May 22, 2021
    JavaScript
    constructor, Javascript
  • Video – Angular Interview : is Angular Service Singleton ?

    One of the most popular Angular interview questions is, whether a service is singleton? By default, when you create a service using the below CLI command, ng g s app AppService is singleton, however it can be re-provided to create more objects of it. Say, you again re provide AppService in one of the components, […]

    Dhananjay Kumar | Angular Teacher | Angular Consultant | ng-India

    April 14, 2021
    Angular, Interview Questions, Video
    Angular, geek97, Interview
  • Video : __proto__ in JavaScript

    This video explains __proto__ in JavaScript in less than 5 minutes

    Dhananjay Kumar | Angular Teacher | Angular Consultant | ng-India

    November 20, 2020
    JS Videos, Video
    Interviews, Javascript, Video, __proto__
  • Union and Intersection of types in TypeScript

    Do you know, TypeScript allows union and Intersection of types? Why you need that? Let us assume you need to create a function that checks whether the passed value is boolean true and returns true, otherwise returns null. That function may look like below, function trueOrNull(foo: any): any {     if (foo === true) {         return true;     }     return undefined; } console.log(trueOrNull(88)); // null  As you see, the […]

    Dhananjay Kumar | Angular Teacher | Angular Consultant | ng-India

    November 2, 2020
    JavaScript
    intersection, TypeScript, union
  • Video – Step by Step Create Node.js REST API with SQL Server Database

    In this video, learn to create a Node.js API to perform CRUD operations on a database in SQL Server. You can find the source code here : https://github.com/debugmodedotnet/sqlservernodejsrestapi For notifications of the further videos, subscribe to the <geek97/> Youtube channel here : https://www.youtube.com/c/geek97

    Dhananjay Kumar | Angular Teacher | Angular Consultant | ng-India

    August 24, 2020
    Video
    Express, Nodejs, sqlserver
  • Master RxJS: Part 2 – What is an observer

    This is the second post in the Master RxJS series. The first post is a video tutorial that explains, why RxJS Watch it here: In this post, we will discuss an observer in RxJS. An observer is an object with three call-back functions to subscribe to the notifications from an Observable. Too much technical jargon? […]

    Dhananjay Kumar | Angular Teacher | Angular Consultant | ng-India

    August 18, 2020
    JavaScript
    Javascript, observer, RxJS
  • How to make the length of an Array read-only in JavaScript

    Sometimes, you may come across a requirement that once the array is created, its length should not be changed. In this blog post, let us explore how you can achieve that. Let us say you have an array as shown below, let foo = ['1', '11']; console.log(foo.length); // 2 console.log(foo[1]); //11 As you see, the length of the array is 2, and […]

    Dhananjay Kumar | Angular Teacher | Angular Consultant | ng-India

    August 8, 2020
    JavaScript
    Array, Javascript, length
Previous Page
1 2 3 4 … 93
Next Page

Dhananjay Kumar

Dhananjay Kumar is a teacher and consultant from India.

He is the best-selling author of the Angular Essentials book and a Google Developer Expert in Angular. He also organizes ng-India, one of the largest Angular conferences in the world.

ADDRESSGurgaon, India

Gurgaon , India

debugmode[at]outlook[dot]com

GET IN TOUCH

  • LinkedIn
  • Twitter
  • Amazon
  • YouTube
Read more: The simplest way to disable console.log for Production build in Angular?
  • Follow Following
    • Dhananjay Kumar
    • Join 986 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