<?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: Ashraful Islam</title>
    <description>The latest articles on DEV Community by Ashraful Islam (@ashrafulislam).</description>
    <link>https://dev.to/ashrafulislam</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%2F626552%2F9acd948c-727f-43b6-9c2b-5c10968455bf.jpeg</url>
      <title>DEV Community: Ashraful Islam</title>
      <link>https://dev.to/ashrafulislam</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ashrafulislam"/>
    <language>en</language>
    <item>
      <title>10 thing you should know about javascript</title>
      <dc:creator>Ashraful Islam</dc:creator>
      <pubDate>Sat, 08 May 2021 15:19:57 +0000</pubDate>
      <link>https://dev.to/ashrafulislam/10-thing-you-should-know-about-javascript-5f12</link>
      <guid>https://dev.to/ashrafulislam/10-thing-you-should-know-about-javascript-5f12</guid>
      <description>&lt;ol&gt;
&lt;li&gt;What is the purpose of the array slice method:
The slice() method returns the selected elements in an array as a new array object. It selects the elements starting at the given start argument, and ends at the given optional end argument without including the last element. If you omit the second argument then it selects till the end.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;2.What is the purpose of the array splice method:&lt;br&gt;
The splice() method is used either adds/removes items to/from an array, and then returns the removed item. The first argument specifies the array position for insertion or deletion whereas the optional second argument indicates the number of elements to be deleted. Each additional argument is added to the array.&lt;/p&gt;

&lt;p&gt;3.How do you compare Object and Map:&lt;br&gt;
Objects are similar to Maps in that both let you set keys to values, retrieve those values, delete keys, and detect whether something is stored at a key. Due to this reason, Objects have been used as Maps historically. But there are important differences that make using a Map preferable in certain cases.&lt;/p&gt;

&lt;p&gt;The keys of an Object are Strings and Symbols, whereas they can be any value for a Map, including functions, objects, and any primitive.&lt;br&gt;
The keys in Map are ordered while keys added to Object are not. Thus, when iterating over it, a Map object returns keys in order of insertion.&lt;br&gt;
You can get the size of a Map easily with the size property, while the number of properties in an Object must be determined manually&lt;/p&gt;

&lt;p&gt;4.What is the difference between == and === operators:&lt;br&gt;
JavaScript provides both strict(===, !==) and type-converting(==, !=) equality comparison. The strict operators take type of variable in consideration, while non-strict operators make type correction/conversion based upon values of variables. The strict operators follow the below conditions for different types,&lt;/p&gt;

&lt;p&gt;Two strings are strictly equal when they have the same sequence of characters, same length, and same characters in corresponding positions.&lt;br&gt;
Two numbers are strictly equal when they are numerically equal. i.e, Having the same number value. There are two special cases in this,&lt;br&gt;
NaN is not equal to anything, including NaN.&lt;br&gt;
Positive and negative zeros are equal to one another.&lt;/p&gt;

&lt;p&gt;5.What are lambda or arrow functions:&lt;br&gt;
An arrow function is a shorter syntax for a function expression and does not have its own this, arguments, super, or new.target. These functions are best suited for non-method functions, and they cannot be used as constructors.&lt;/p&gt;

&lt;p&gt;6.What is a first class function:&lt;br&gt;
In Javascript, functions are first class objects. First-class functions means when functions in that language are treated like any other variable.&lt;/p&gt;

&lt;p&gt;For example, in such a language, a function can be passed as an argument to other functions, can be returned by another function and can be assigned as a value to a variable. For example, in the below example, handler functions assigned to a listener&lt;/p&gt;

&lt;p&gt;7.What is a first order function:&lt;br&gt;
First-order function is a function that doesn’t accept another function as an argument and doesn’t return a function as its return value.&lt;/p&gt;

&lt;p&gt;8.What is a higher order function:&lt;br&gt;
Higher-order function is a function that accepts another function as an argument or returns a function as a return value or both.&lt;/p&gt;

&lt;p&gt;9.What is a pure function:&lt;br&gt;
A Pure function is a function where the return value is only determined by its arguments without any side effects. i.e, If you call a function with the same arguments 'n' number of times and 'n' number of places in the application then it will always return the same value.&lt;/p&gt;

&lt;p&gt;10.What is the purpose of the let keyword:&lt;br&gt;
The let statement declares a block scope local variable. Hence the variables defined with let keyword are limited in scope to the block, statement, or expression on which it is used. Whereas variables declared with the var keyword used to define a variable globally, or locally to an entire function regardless of block scope.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>interview</category>
      <category>help</category>
    </item>
    <item>
      <title>Comments</title>
      <dc:creator>Ashraful Islam</dc:creator>
      <pubDate>Thu, 06 May 2021 15:31:21 +0000</pubDate>
      <link>https://dev.to/ashrafulislam/comments-4kl2</link>
      <guid>https://dev.to/ashrafulislam/comments-4kl2</guid>
      <description>&lt;p&gt;Comments&lt;br&gt;
As we know from the chapter Code structure, comments can be single-line: starting with // and multiline: /* ... */.&lt;/p&gt;

&lt;p&gt;We normally use them to describe how and why the code works.&lt;/p&gt;

&lt;p&gt;At first sight, commenting might be obvious, but novices in programming often use them wrongly.:&lt;/p&gt;

</description>
      <category>comments</category>
      <category>help</category>
      <category>coading</category>
    </item>
    <item>
      <title>Curly Braces</title>
      <dc:creator>Ashraful Islam</dc:creator>
      <pubDate>Thu, 06 May 2021 15:24:26 +0000</pubDate>
      <link>https://dev.to/ashrafulislam/curly-braces-i85</link>
      <guid>https://dev.to/ashrafulislam/curly-braces-i85</guid>
      <description>&lt;p&gt;Curly Braces&lt;br&gt;
In most JavaScript projects curly braces are written in “Egyptian” style with the opening brace on the same line as the corresponding keyword – not on a new line. There should also be a space before the opening bracket, like this:&lt;/p&gt;

</description>
      <category>curlybraces</category>
      <category>help</category>
      <category>coading</category>
    </item>
    <item>
      <title>Coding Style</title>
      <dc:creator>Ashraful Islam</dc:creator>
      <pubDate>Thu, 06 May 2021 15:18:37 +0000</pubDate>
      <link>https://dev.to/ashrafulislam/coding-style-2bng</link>
      <guid>https://dev.to/ashrafulislam/coding-style-2bng</guid>
      <description>&lt;p&gt;Coding Style&lt;br&gt;
Our code must be as clean and easy to read as possible.&lt;/p&gt;

&lt;p&gt;That is actually the art of programming – to take a complex task and code it in a way that is both correct and human-readable. A good code style greatly assists in that.&lt;/p&gt;

&lt;p&gt;Syntax&lt;br&gt;
Here is a cheat sheet with some suggested rules (see below for more detail&lt;/p&gt;

</description>
      <category>help</category>
      <category>coadingstyle</category>
      <category>coading</category>
      <category>styling</category>
    </item>
    <item>
      <title>How to throwing our own errors</title>
      <dc:creator>Ashraful Islam</dc:creator>
      <pubDate>Thu, 06 May 2021 15:15:56 +0000</pubDate>
      <link>https://dev.to/ashrafulislam/how-to-throwing-our-own-errors-3586</link>
      <guid>https://dev.to/ashrafulislam/how-to-throwing-our-own-errors-3586</guid>
      <description>&lt;p&gt;Throwing our own errors&lt;br&gt;
What if json is syntactically correct, but doesn’t have a required name property?&lt;/p&gt;

</description>
      <category>help</category>
      <category>errors</category>
    </item>
    <item>
      <title>Error object</title>
      <dc:creator>Ashraful Islam</dc:creator>
      <pubDate>Thu, 06 May 2021 15:03:25 +0000</pubDate>
      <link>https://dev.to/ashrafulislam/error-object-39ol</link>
      <guid>https://dev.to/ashrafulislam/error-object-39ol</guid>
      <description>&lt;p&gt;Error object&lt;br&gt;
When an error occurs, JavaScript generates an object containing the details about it. The object is then passed as an argument to catch&lt;/p&gt;

</description>
      <category>hlep</category>
      <category>errorobject</category>
      <category>object</category>
      <category>errors</category>
    </item>
    <item>
      <title>try...catch works synchronously</title>
      <dc:creator>Ashraful Islam</dc:creator>
      <pubDate>Thu, 06 May 2021 15:01:49 +0000</pubDate>
      <link>https://dev.to/ashrafulislam/try-catch-works-synchronously-2n16</link>
      <guid>https://dev.to/ashrafulislam/try-catch-works-synchronously-2n16</guid>
      <description>&lt;p&gt;try...catch works synchronously&lt;br&gt;
If an exception happens in “scheduled” code, like in setTimeout, then try...catch won’t catch it:&lt;/p&gt;

</description>
      <category>help</category>
      <category>errors</category>
      <category>trycatch</category>
      <category>javascript</category>
    </item>
    <item>
      <title>When try...catch dosen't work</title>
      <dc:creator>Ashraful Islam</dc:creator>
      <pubDate>Thu, 06 May 2021 14:57:39 +0000</pubDate>
      <link>https://dev.to/ashrafulislam/when-try-catch-dosen-t-work-2mea</link>
      <guid>https://dev.to/ashrafulislam/when-try-catch-dosen-t-work-2mea</guid>
      <description>&lt;p&gt;try...catch only works for runtime errors&lt;br&gt;
For try...catch to work, the code must be runnable. In other words, it should be valid JavaScript.&lt;/p&gt;

&lt;p&gt;It won’t work if the code is syntactically wrong, for instance it has unmatched curly braces:&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>help</category>
      <category>errors</category>
      <category>trycatch</category>
    </item>
    <item>
      <title>Error Handling(try...catch)</title>
      <dc:creator>Ashraful Islam</dc:creator>
      <pubDate>Thu, 06 May 2021 14:53:20 +0000</pubDate>
      <link>https://dev.to/ashrafulislam/error-handling-try-catch-7fe</link>
      <guid>https://dev.to/ashrafulislam/error-handling-try-catch-7fe</guid>
      <description>&lt;p&gt;Hey todays topic is very intersting, today we will learn about error handling.&lt;br&gt;
Accualy it dosen't matter how great we are at programming , sometime our script have error. Error may occur because of our mistake , an unknown code, an unexpected user input , and for a  thousand reason we can have error. Usually a script stop due to error.&lt;br&gt;
The “try…catch” syntax&lt;br&gt;
The try...catch construct has two main blocks: try, and then catch:&lt;/p&gt;

&lt;p&gt;try {&lt;/p&gt;

&lt;p&gt;// code...&lt;/p&gt;

&lt;p&gt;} catch (err) {&lt;/p&gt;

&lt;p&gt;// error handling&lt;/p&gt;

&lt;p&gt;}&lt;br&gt;
It works like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;First the try code is executed. if there is no error then code is run avoiding the catch error.&lt;/li&gt;
&lt;li&gt;if try code executed and get some problem , cod stop and catch function catch the error with out kill the script so we have chance to handle it. &lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>errors</category>
      <category>help</category>
      <category>trycatch</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Types of Values</title>
      <dc:creator>Ashraful Islam</dc:creator>
      <pubDate>Thu, 06 May 2021 13:57:22 +0000</pubDate>
      <link>https://dev.to/ashrafulislam/types-of-values-4on3</link>
      <guid>https://dev.to/ashrafulislam/types-of-values-4on3</guid>
      <description>&lt;p&gt;As a javascript learner you should have proper knowledge about values. After Almost twenty five yeas of studying JavaScript, the scientists have only discovered nine such type of values , that you should remember always. &lt;br&gt;
There are two type of values &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Primitive Values&lt;/li&gt;
&lt;li&gt;Objects And Functions&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Primitive Values:&lt;br&gt;
● Undefined​ (undefined), used for unintentionally missing values.&lt;br&gt;
● Null​ (null), used for intentionally missing values.&lt;br&gt;
● Booleans​ (true and false), used for logical operations.&lt;br&gt;
● Numbers​ (-100, 3.14, and others), used for math calculations.&lt;br&gt;
● Strings​ ("hello", "abracadabra", and others), used for text.&lt;br&gt;
● Symbols​ (uncommon), used to hide implementation details.&lt;br&gt;
● BigInts​ (uncommon and new), used for math on big numbers.&lt;/p&gt;

&lt;p&gt;Objects And Functions:&lt;br&gt;
● Objects​ ({} and others), used to group related data and code.&lt;br&gt;
● Functions​ (x =&amp;gt; x * 2 and others), used to refer to code.&lt;/p&gt;

&lt;p&gt;thank you for reading.&lt;br&gt;
happy coading(.)&lt;/p&gt;

</description>
      <category>help</category>
      <category>javascript</category>
      <category>value</category>
      <category>string</category>
    </item>
    <item>
      <title>Expressions</title>
      <dc:creator>Ashraful Islam</dc:creator>
      <pubDate>Thu, 06 May 2021 12:06:48 +0000</pubDate>
      <link>https://dev.to/ashrafulislam/expressions-446k</link>
      <guid>https://dev.to/ashrafulislam/expressions-446k</guid>
      <description>&lt;p&gt;There are many questions javascript can't answer. As if you want to know about weather , javascript wont be abele to answer it . But there are some questions that javascript can answer it, or you can say javascript would make you happy by answering your questions. This tipe of questions have a name , it calls expressions. Let's see some example:&lt;br&gt;
if we ask the  expressions 2+2 javascript will answer with value 4.&lt;br&gt;
CONSOL.LOG(2+2); // 4&lt;br&gt;
one thing you shuld know that, EXPRESSIONS is a questions that javascript can answer , and it always result in a single value. &lt;/p&gt;

</description>
      <category>help</category>
      <category>healthydebate</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
