21. slice VS splice:
slice does not affect the original array, it just cuts out the elements from the array.
splice is used to make changes in the original array, either to remove some elements or replace them.
22. forEach VS map:
forEach is generally used when you need not return something during iteration.
the map is used when you want to return something during iteration.
DO NOT USE map…
2.Swapping of two Numbers.
3 Concatenating two or more arrays without causing server overload.
4.Use Filter in a different way.
5.Iterate on the map from 0 to n.
6.Replace all occurrences of a word in a string
7. Shortcut for conditions.
Here, I am explaining basic two examples we can implement in multiple ways.
8.String to number /…
I was working on a project for Virtual Cybertrons Private Limited,
During the development, I was assigned a task with the same functionality as Truecaller, Showing Popups on receiving calls. Initially was stuck with hours of research and searches over the Internet, which was slightly challenging as not much support or community help is available for such functionalities in react native.
I completed it in the following steps.
In this story, I will give a quick guide regarding how to setup up the react-native environment in M1,its slightly challenging as not much support and community help is available
After reading this blog you will end up setting up react-native in M1.
So, the first step is that for setting up brew you have to set up rosetta in your Mac for this there are the following commands.
Once you complete the Rosetta installation, run the below command to install the Homebrew.
After Setting up Rosetta we will create Rosetta Terminal
For this just go to finder…
Variadic Function are those functions which takes variable number of arguments, as many of us are always curious about how printf and scanf works as we can call them with variable number of arguments.
How does this work?
You can declare variadic function as same as other function with a last argument function(a,b,c, …), here “…” signals that there can be variable number of arguments to function.It looks like:
int sum(int n, …)
For using this syntax you have to include stdarg.h header File in header section like this.
Now we will learn about some macros which we will…
Layout refers to the arrangement of components like(TextField, Label, Button etc.) within the container. In another way, it could be said that layout is placing the components at a particular position within the container.
The layout of components is dictated by the layout manager used. There are different layout managers built into Java. Most UIs are built using some combination of them, typically by nesting layout managers.
The Different Layout Managers :
What is MongoDB?
MongoDB is a document-oriented NoSQL database used for high volume data storage. Instead of using tables and rows as in the traditional relational databases, MongoDB makes use of collections and documents. Documents consist of key-value pairs which are the basic unit of data in MongoDB. Collections contain sets of documents and functions which is the equivalent of relational database tables. MongoDB is a database that came into light around the mid-2000s.
Operating System: UBUNTU 16.04 and above versions.
MongoDB Community Server & MongoDB Compass
C Code Compiler- you have to install any compiler for c code.
Sorting Algorithms are always the basics steps to learn data structures but understanding there working is really tough, for the newcomers So I have decided to create a Sorting Visualiser. I have created it only in 4 hours. It has the implementation of Quick Sort, Selection Sort, Bubble sort, Linear Sort. I will add the implementation of Merge Sort, Shell Sort, Insertion Sort, Heap Sort, and bucket Sort Shortly.
JSX: JSX is a statically-typed, object-oriented programming language designed to run on modern web browsers. JSX provide us a provision to write the HTML and Java script together.