<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vibhakar Kumar</title>
    <description>The latest articles on DEV Community by Vibhakar Kumar (@iamvibhakar).</description>
    <link>https://dev.to/iamvibhakar</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1280138%2F09dcb99c-a291-4548-952e-6b592d5539cb.jpeg</url>
      <title>DEV Community: Vibhakar Kumar</title>
      <link>https://dev.to/iamvibhakar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/iamvibhakar"/>
    <language>en</language>
    <item>
      <title>Angular 20.1.0 – What’s new? Binary Assignment Operators with Angular v20.1.0</title>
      <dc:creator>Vibhakar Kumar</dc:creator>
      <pubDate>Tue, 22 Jul 2025 07:19:11 +0000</pubDate>
      <link>https://dev.to/iamvibhakar/angular-2010-whats-new-binary-assignment-operators-with-angular-v2010-2j4o</link>
      <guid>https://dev.to/iamvibhakar/angular-2010-whats-new-binary-assignment-operators-with-angular-v2010-2j4o</guid>
      <description>&lt;p&gt;Learn Angular Binary Assignment Operators Visually&lt;br&gt;
Struggling to understand binary assignment operators like &lt;code&gt;+=&lt;/code&gt;, &lt;code&gt;*=&lt;/code&gt;, &lt;code&gt;||=&lt;/code&gt;, or &lt;code&gt;??=&lt;/code&gt; in JavaScript or Angular? This interactive Angular demo makes it easy:&lt;/p&gt;

&lt;p&gt;✅ Hands-On Learning – See how operators work in real-time, not just in theory.&lt;br&gt;
✅ Built with Angular 20 – A lightweight, modern example to enhance your understanding.&lt;br&gt;
✅ Visual Feedback – Modify values and instantly see the effects of each operator.&lt;br&gt;
✅ Perfect for Beginners – Great for those new to JavaScript or Angular.&lt;/p&gt;
&lt;h2&gt;
  
  
  What Does the App Do?
&lt;/h2&gt;
&lt;h4&gt;
  
  
  Interactive Angular Demo: Binary Assignment Operators in Action
&lt;/h4&gt;

&lt;p&gt;This app visually demonstrates key JavaScript/Angular binary assignment operators through real-time interaction.&lt;/p&gt;
&lt;h4&gt;
  
  
  Features:
&lt;/h4&gt;

&lt;p&gt;🔹 Mathematical Operations&lt;br&gt;
Increment (+=), Decrement (-=), Multiply (&lt;em&gt;=) Square a number (&lt;/em&gt;*=)&lt;/p&gt;

&lt;p&gt;🔹 Logical Operations&lt;br&gt;
Set a message only if empty (||=)&lt;br&gt;
Toggle/reset a flag only if true (&amp;amp;&amp;amp;=)&lt;/p&gt;

&lt;p&gt;🔹 Nullish Coalescing (??=) Behavior&lt;br&gt;
Assign a default value only if the variable is null or undefined&lt;/p&gt;
&lt;h2&gt;
  
  
  Project Overview:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fixzqnkcsda5z2uqzd3h8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fixzqnkcsda5z2uqzd3h8.png" alt=" " width="380" height="696"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  The User Interface
&lt;/h2&gt;

&lt;p&gt;The UI is clean and split into three sections:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;- Count Operations&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div&amp;gt;
  &amp;lt;h2&amp;gt;Count: {{ count }}&amp;lt;/h2&amp;gt;
  &amp;lt;button (click)="count += 1"&amp;gt;Increment (+1)&amp;lt;/button&amp;gt;
  &amp;lt;button (click)="count -= 1"&amp;gt;Decrement (-1)&amp;lt;/button&amp;gt;
  &amp;lt;button (click)="count *= multiplier"&amp;gt;Multiply&amp;lt;/button&amp;gt;
  &amp;lt;button (click)="count **= 2"&amp;gt;Square&amp;lt;/button&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;- Message Controls&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div&amp;gt;
  &amp;lt;h3&amp;gt;Message: {{ message }}&amp;lt;/h3&amp;gt;
  &amp;lt;button (click)="message ||= 'Hello, Angular!'"&amp;gt;Set Message if Empty&amp;lt;/button&amp;gt;
  &amp;lt;button (click)="message &amp;amp;&amp;amp;= ''"&amp;gt;Clear Message if Exists&amp;lt;/button&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;- Boolean Logic&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div&amp;gt;
  &amp;lt;h3&amp;gt;Condition: {{ condition }}&amp;lt;/h3&amp;gt;
  &amp;lt;button (click)="condition ??= true"&amp;gt;Set if Undefined / Null&amp;lt;/button&amp;gt;
  &amp;lt;button (click)="condition &amp;amp;&amp;amp;= false"&amp;gt;Reset if True&amp;lt;/button&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  How to Run the App:
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;- Step 1: Clone the Repo&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://github.com/iamvibhakar/angular_20_example.git
cd angular_20_example
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;- Step 2: Install Dependencies&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;- Step 3: Run the Development Server&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng serve
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Visit &lt;code&gt;http://localhost:4200&lt;/code&gt; in your browser to see it live.&lt;/p&gt;




&lt;h2&gt;
  
  
  📚 Key Learning Outcomes
&lt;/h2&gt;

&lt;p&gt;✨ Master Angular Fundamentals&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Component architecture &amp;amp; template rendering&lt;/li&gt;
&lt;li&gt;Event binding &amp;amp; reactive UI updates&lt;/li&gt;
&lt;li&gt;Modern Angular 20 project structure&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;✨ JavaScript Operators in Action&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Logical assignments (||=, &amp;amp;&amp;amp;=)&lt;/li&gt;
&lt;li&gt;Nullish coalescing (??=)&lt;/li&gt;
&lt;li&gt;Mathematical operations (+=, **=, more)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;✨ Production-Ready Practices&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Clean, modular code structure&lt;/li&gt;
&lt;li&gt;Best practices for maintainable Angular apps&lt;/li&gt;
&lt;li&gt;Interactive learning through real-time examples&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Final Thoughts: Learn Smarter, Not Harder
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;🚀 Simple Yet Powerful Learning&lt;/strong&gt;&lt;br&gt;
Binary operators don’t need to be confusing. This interactive demo breaks them down visually—so you see how they work, not just read about them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;💡 Two Skills at Once&lt;/strong&gt;&lt;br&gt;
Master JavaScript operators while leveling up your Angular knowledge. Efficient and practical!&lt;/p&gt;

&lt;p&gt;Because the best way to learn is by doing—start experimenting now!&lt;/p&gt;

&lt;p&gt;&lt;em&gt;🔗 Check out the code here:&lt;/em&gt; &lt;a href="https://github.com/iamvibhakar/angular_20_example.git" rel="noopener noreferrer"&gt;GitHub Repo&lt;br&gt;
&lt;/a&gt;&lt;/p&gt;

</description>
      <category>angular</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>𝗻𝗴-𝗰𝗼𝗻𝘁𝗮𝗶𝗻𝗲𝗿 vs 𝗻𝗴-𝘁𝗲𝗺𝗽𝗹𝗮𝘁𝗲 in Angular : Key Differences Explained</title>
      <dc:creator>Vibhakar Kumar</dc:creator>
      <pubDate>Fri, 20 Jun 2025 06:26:08 +0000</pubDate>
      <link>https://dev.to/iamvibhakar/-vs-in-angular-key-differences-explained-1e54</link>
      <guid>https://dev.to/iamvibhakar/-vs-in-angular-key-differences-explained-1e54</guid>
      <description>&lt;p&gt;&lt;strong&gt;When working with Angular's structural directives and conditional rendering, you'll frequently encounter both  and . While they might seem similar at first glance, they serve distinct purposes in Angular applications.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Key Differences Between ng-container and ng-template&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frj4b1806jdm3npzqx1y0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frj4b1806jdm3npzqx1y0.png" alt="Image description" width="800" height="411"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to Use Each:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use &lt;code&gt;&amp;lt;ng-container&amp;gt;&lt;/code&gt; when:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;You need to group elements without adding an extra DOM node&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You want to apply multiple structural directives to a single element&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You need a clean way to conditionally render content&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Use &lt;code&gt;&amp;lt;ng-template&amp;gt;&lt;/code&gt; when:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;You need to define content that won't render immediately&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You want to create reusable template fragments&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You're working with structural directives like *ngIf, *ngFor, or *ngSwitch&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You need to reference the template elsewhere in your component.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Code Examples&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;&lt;strong&gt;Basic ng-container Example&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!-- Grouping elements without extra DOM node --&amp;gt;
&amp;lt;ng-container&amp;gt;
  &amp;lt;h2&amp;gt;User Profile&amp;lt;/h2&amp;gt;
  &amp;lt;p&amp;gt;Welcome back, {{user.name}}!&amp;lt;/p&amp;gt;
&amp;lt;/ng-container&amp;gt;

&amp;lt;!-- Using with *ngIf --&amp;gt;
&amp;lt;ng-container *ngIf="user.isAdmin"&amp;gt;
  &amp;lt;button (click)="editProfile()"&amp;gt;Edit Profile&amp;lt;/button&amp;gt;
  &amp;lt;button (click)="deleteUser()"&amp;gt;Delete User&amp;lt;/button&amp;gt;
&amp;lt;/ng-container&amp;gt;

&amp;lt;!-- Multiple structural directives --&amp;gt;
&amp;lt;div *ngFor="let item of items"&amp;gt;
  &amp;lt;ng-container *ngIf="item.isActive"&amp;gt;
    {{item.name}}
  &amp;lt;/ng-container&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;&lt;strong&gt;Basic ng-template Example&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!-- Simple template definition --&amp;gt;
&amp;lt;ng-template #loadingTemplate&amp;gt;
  &amp;lt;div class="spinner"&amp;gt;Loading...&amp;lt;/div&amp;gt;
&amp;lt;/ng-template&amp;gt;

&amp;lt;!-- Using with *ngIf else --&amp;gt;
&amp;lt;div *ngIf="dataLoaded; else loadingTemplate"&amp;gt;
  Content loaded successfully!
&amp;lt;/div&amp;gt;

&amp;lt;!-- Template reference with ViewChild --&amp;gt;
&amp;lt;ng-template #customTemplate let-name="name"&amp;gt;
  &amp;lt;p&amp;gt;Hello, {{name}}!&amp;lt;/p&amp;gt;
&amp;lt;/ng-template&amp;gt;

&amp;lt;!-- Using ngTemplateOutlet --&amp;gt;
&amp;lt;ng-container *ngTemplateOutlet="customTemplate; context: {name: 'Alice'}"&amp;gt;&amp;lt;/ng-container&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Advanced Usage Patterns&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;Dynamic Template Rendering&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@Component({
  selector: 'app-dynamic',
  template: `
    &amp;lt;ng-container *ngTemplateOutlet="currentTemplate; context: ctx"&amp;gt;&amp;lt;/ng-container&amp;gt;
    &amp;lt;button (click)="toggleTemplate()"&amp;gt;Toggle Template&amp;lt;/button&amp;gt;

    &amp;lt;ng-template #template1 let-greeting="greeting"&amp;gt;
      &amp;lt;h1&amp;gt;{{greeting}} from Template 1!&amp;lt;/h1&amp;gt;
    &amp;lt;/ng-template&amp;gt;

    &amp;lt;ng-template #template2 let-greeting="greeting"&amp;gt;
      &amp;lt;h2&amp;gt;{{greeting}} from Template 2!&amp;lt;/h2&amp;gt;
    &amp;lt;/ng-template&amp;gt;
  `
})
export class DynamicComponent {
  @ViewChild('template1') template1: TemplateRef&amp;lt;any&amp;gt;;
  @ViewChild('template2') template2: TemplateRef&amp;lt;any&amp;gt;;

  currentTemplate: TemplateRef&amp;lt;any&amp;gt;;
  ctx = { greeting: 'Hello' };

  ngOnInit() {
    this.currentTemplate = this.template1;
  }

  toggleTemplate() {
    this.currentTemplate = 
      this.currentTemplate === this.template1 ? this.template2 : this.template1;
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Content Projection with ng-container&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@Component({
  selector: 'app-tab',
  template: `
    &amp;lt;div class="tab-container"&amp;gt;
      &amp;lt;ng-container *ngIf="active" [ngTemplateOutlet]="contentTemplate"&amp;gt;&amp;lt;/ng-container&amp;gt;
    &amp;lt;/div&amp;gt;
  `
})
export class TabComponent {
  @Input() active = false;
  @ContentChild('content') contentTemplate: TemplateRef&amp;lt;any&amp;gt;;
}

@Component({
  selector: 'app-tabs',
  template: `
    &amp;lt;app-tab [active]="true"&amp;gt;
      &amp;lt;ng-template #content&amp;gt;
        &amp;lt;h3&amp;gt;First Tab Content&amp;lt;/h3&amp;gt;
        &amp;lt;p&amp;gt;This is projected content using ng-template&amp;lt;/p&amp;gt;
      &amp;lt;/ng-template&amp;gt;
    &amp;lt;/app-tab&amp;gt;
  `
})
export class TabsComponent {}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Performance Considerations&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;ng-container: Has virtually no performance impact as it doesn't create DOM nodes&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;ng-template: Lightweight when not rendered, but instantiating templates has some overhead&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Best practice: Use ng-container for simple grouping and ng-template for reusable/complex templates&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Common Pitfalls&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.Assuming ng-template content renders by default:&lt;/strong&gt; Remember, ng-template content is inert until explicitly rendered.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2.Overusing ng-container:&lt;/strong&gt; Don't wrap every element in ng-container - only use when necessary for structural directives or logical grouping.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3.Context confusion:&lt;/strong&gt; When using template context variables, ensure the property names match between the template definition and usage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Understanding the difference between ng-container and ng-template is crucial for writing clean, efficient Angular templates. While ng-container serves as an invisible grouping element, ng-template provides powerful capabilities for defining reusable template fragments. By using these elements appropriately, you can create more maintainable and performant Angular applications.&lt;/p&gt;

&lt;p&gt;Thanks and Regards &lt;br&gt;
Vibhakar Kumar&lt;br&gt;
&lt;em&gt;Software Engineer&lt;/em&gt; &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Date Methods JavaScript</title>
      <dc:creator>Vibhakar Kumar</dc:creator>
      <pubDate>Tue, 20 Feb 2024 06:21:05 +0000</pubDate>
      <link>https://dev.to/iamvibhakar/date-methods-javascript-3h5h</link>
      <guid>https://dev.to/iamvibhakar/date-methods-javascript-3h5h</guid>
      <description>&lt;p&gt;Date methods in JavaScript enable manipulation and formatting of dates. &lt;br&gt;
The most common methods include &lt;code&gt;getDate()&lt;/code&gt; for retrieving the day of the month, &lt;code&gt;getMonth()&lt;/code&gt; for getting the month (0-11), &lt;code&gt;getFullYear()&lt;/code&gt; for obtaining the year, and &lt;code&gt;getDay()&lt;/code&gt; for fetching the day of the week (0-6). Additionally, there are setters like &lt;code&gt;setDate()&lt;/code&gt;, &lt;code&gt;setMonth()&lt;/code&gt;, and &lt;code&gt;setFullYear()&lt;/code&gt; for modifying date components. &lt;code&gt;toLocaleDateString()&lt;/code&gt; and &lt;code&gt;toLocaleTimeString()&lt;/code&gt; convert dates and times to locale-specific strings. &lt;code&gt;getTime()&lt;/code&gt; returns the number of milliseconds since January 1, 1970, while &lt;code&gt;Date.now()&lt;/code&gt; directly gives the current timestamp. These methods facilitate the comprehensive handling of dates in JavaScript applications.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example are :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;const date = new Date();&lt;/code&gt; //Tue Feb 20 2024 11:31:00 GMT+0530&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;date.getDate();&lt;/code&gt;                   // month's date: 20 &lt;br&gt;
&lt;code&gt;date.getMonth();&lt;/code&gt;                  // Month with 0 index: 1&lt;br&gt;
&lt;code&gt;date.getFullYear();&lt;/code&gt;               // Year: 2024&lt;br&gt;
&lt;code&gt;date.getHours();&lt;/code&gt;                  // Hours: 11&lt;br&gt;
&lt;code&gt;date.getMinutes();&lt;/code&gt;                // Minutes: 54&lt;br&gt;
&lt;code&gt;date.getSeconds();&lt;/code&gt;                // Seconds: 34&lt;br&gt;
&lt;code&gt;date.getMilliseconds();&lt;/code&gt;           // Millisecond: 186&lt;br&gt;
&lt;code&gt;date.getTime();&lt;/code&gt;                   // Time: 1708409236568&lt;br&gt;
&lt;code&gt;date.setDate(23);&lt;/code&gt;                 // Set date: 23&lt;br&gt;
&lt;code&gt;date.setMonth(3);&lt;/code&gt;                 // Set month: 3&lt;br&gt;
&lt;code&gt;date.setFullYear(2024);&lt;/code&gt;           // Set year: 2024&lt;br&gt;
&lt;code&gt;date.setHours(10);&lt;/code&gt;                // Set hours: 10&lt;br&gt;
&lt;code&gt;date.setMinutes(45);&lt;/code&gt;              // Set minutes: 45&lt;br&gt;
&lt;code&gt;date.setSeconds(49);&lt;/code&gt;              // Set seconds: 49&lt;br&gt;
&lt;code&gt;date.setMilliseconds(176);&lt;/code&gt;        // Set Milliseconds: 176 &lt;code&gt;date.setTime(1648101466176);&lt;/code&gt;      // Set time: 1648101466176&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;Thank You !&lt;br&gt;
Vibhakar Kumar&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>programming</category>
      <category>coding</category>
    </item>
    <item>
      <title>Introduction to Git (Basics)</title>
      <dc:creator>Vibhakar Kumar</dc:creator>
      <pubDate>Wed, 14 Feb 2024 08:48:03 +0000</pubDate>
      <link>https://dev.to/iamvibhakar/basic-of-git-66j</link>
      <guid>https://dev.to/iamvibhakar/basic-of-git-66j</guid>
      <description>&lt;p&gt;&lt;strong&gt;Point 1: Getting Started with Git&lt;/strong&gt;&lt;br&gt;
Understand the fundamentals of version control.&lt;br&gt;
Installing Git on your machine (Windows, macOS, Linux).&lt;br&gt;
Configuring Git: setting up your username, email&lt;br&gt;
To check global user name and email: &lt;br&gt;
&lt;em&gt;git config -g user.name&lt;/em&gt; &lt;br&gt;
&lt;em&gt;git config -g user.email&lt;/em&gt;&lt;br&gt;
&lt;strong&gt;if you want to change name then&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;git config -g user.name "Vibhakar"&lt;/em&gt;&lt;br&gt;
&lt;em&gt;git config -g user.email "&lt;a href="mailto:test@gmail.com"&gt;test@gmail.com&lt;/a&gt;"&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Initiating a Git repository: &lt;em&gt;git init&lt;/em&gt; and creating your first commit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Point 2: Basic Git Commands&lt;/strong&gt;&lt;br&gt;
Cloning repositories: &lt;em&gt;git clone pasteCloneLink&lt;/em&gt;_&lt;br&gt;
Checking the status of your repository: &lt;em&gt;git status&lt;/em&gt;&lt;br&gt;
Adding and committing changes: &lt;em&gt;git add. and git commit -m TypeCommitText&lt;/em&gt;&lt;br&gt;
Viewing commit history: &lt;em&gt;git log&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Point 3: Branching and Merging&lt;/strong&gt;&lt;br&gt;
Creating and switching branches: &lt;em&gt;git branch&lt;/em&gt; and &lt;em&gt;git checkout enterBranchName&lt;/em&gt;&lt;br&gt;
Merging branches: &lt;em&gt;git merge&lt;/em&gt;&lt;br&gt;
Resolving merge conflicts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Point 4: Collaborating with Git&lt;/strong&gt;&lt;br&gt;
Adding remote repositories: &lt;em&gt;git remote&lt;/em&gt;&lt;br&gt;
Pushing and pulling changes: &lt;em&gt;git push and git pull&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Point 5: Advanced Git Techniques&lt;/strong&gt;&lt;br&gt;
Rewriting history: &lt;em&gt;git rebase and git commit --amend&lt;/em&gt;&lt;br&gt;
Stashing changes: &lt;em&gt;git stash&lt;/em&gt;&lt;br&gt;
Revert Stash: &lt;em&gt;git stash apply or git stash pop&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Thanks and Regards&lt;br&gt;
Vibhakar Kumar&lt;br&gt;
Software Engineer &lt;/p&gt;

</description>
      <category>git</category>
      <category>github</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
