You can reduce the quality of photos to speed up the loading of your site
If you own a website or work on a customer website, then you need to know the importance of SEO. Without proper SEO strategies, you can not get high rankings in Google.
Success in a media channel such as organic search depends on the content. In particular, the production of useful content has the ability to rank. In its recent algorithm updates, Google has focused heavily on promoting great content and natural links, and penalizing poor content with unspecified links.
Websites are created using different frameworks and programming languages. The .NET framework is one of the many options you can choose from.
1. Assign a variable with a value compared to a reference
Example; In the following code, var2 is equal to var1. Since var1 is the main type (String), var2 is set to the value of the strings var1 and can be thought of as quite different from var1 at this point. Accordingly, var2 redistribution has no effect on var1
You may see how it can cause problems if you expect it to behave like assigning primary variables! This can be bad, especially when you create a function that inadvertently changes an object.
In a more realistic scenario, consider an initial apiConnect function (apiKey) that returns some of the methods that use the API key. In this case, apiKey needs to be prepared only once and does not need to be done again.
This is a common way to extract properties from objects.
If you want to extract properties by another name, you can specify them using the following format.
In the following example, this method is used to pass the person object to the introduce function. In other words, this method can be used directly to send the extracted parameters to a function. If you are familiar with React, you have probably seen it before!
4. Spread syntax
5. Syntax Rest
6. Array methods
Here we cover one of the different array methods, which is organized with similar methods that are sometimes combined.
1. map, filter, reduce
map: Returns an array in which each element is converted to an item specified by the function.
filter: Returns an array of elements that returns the true function.
Reduce: Summarizes the values as specified in the function.
Do not be afraid of *. The generator function specifies what the yield value is the next time the next () is called. You can have a limited number of yields after next () returns the undefined value, or returns an unlimited amount of values using a loop.
And use the generator for unlimited values:
8. Identification operator (===) compared to equality operator (==)
9. Object comparison
A mistake most newcomers make is direct comparison of objects. Variables refer to references to objects in memory, not to the objects themselves. One way to compare them is to convert objects to JSON strings. This has one drawback: Object property ordering is not guaranteed. A safer way to compare objects is to use a library that specializes in deep comparison of objects, such as isEqual.
The following objects appear to be equal but point to different references.
Instead, the following code is evaluated correctly because one object is equal to another object and therefore refers to the same reference (there is only one object in memory).
Be sure to read the value comparison with reference section above to fully understand the setting of a variable equal to another variable that points to an object in memory.
10. Callback functions
12. Async Await