التخطي إلى المحتوى الرئيسي

المشاركات

عرض المشاركات من يناير, 2025

JavaScript Predefine Function for Array and String | Predefine Javascript function list

 JavaScript Predefine Function for Array and String: JavaScript has several predefined functions for arrays that can be quite handy. Here are a few of them: 1. `push()`: Adds one or more elements to the end of an array.    let fruits = ['apple', 'banana'];    fruits.push('orange');    // ['apple', 'banana', 'orange']    2. `pop()`: Removes the last element from an array.      let fruits = ['apple', 'banana', 'orange'];    fruits.pop();    // ['apple', 'banana']   3. `shift()`: Removes the first element from an array.      let fruits = ['apple', 'banana', 'orange'];    fruits.shift();    // ['banana', 'orange']    4. `unshift()`: Adds one or more elements to the beginning of an array.    `    let fruits = ['banana', 'orange'];    fruits.unshift('apple');    // ['apple', 'banana', 'orange'] 5. `splice()`: Adds or r...

C# 13 New Features | 10 Important Features of C# 13 under .NET 9

Exploring New Features in C# 13 Hi .NET learner, I am Shiva Gautam and now i am discussing about C#13 Features, you know very well that now .NET 9.0 is released with C# 13 Version. here is the latest features of C# 13: 1. Params Collections The `params` keyword can now be used with any collection type that implements `IEnumerable<T>`. This makes it easier to pass a variable number of arguments to methods. e.g: class Program {     public static void PrintNumbers(params IEnumerable<int> numbers)     {         foreach (var number in numbers)         {             Console.WriteLine(number);         }     }     public static void Main()     {         PrintNumbers(1, 2, 3, 4, 5);     }      } 2) Enhanced Support for ReadOnlySpan<T> In C# 13, the support for  ReadOnlySpan<T>  ha...