<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
>

<channel>
	<title>Bipon&#039;s Diary</title>
	<atom:link href="https://biponnotes.iglyphic.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://biponnotes.iglyphic.com</link>
	<description>Do good for others. It will come back in unexpected ways.</description>
	<lastBuildDate>Thu, 06 Feb 2020 07:21:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.5</generator>
<site xmlns="com-wordpress:feed-additions:1">168324471</site>	<item>
		<title>The concept of hoisting in JavaScript</title>
		<link>https://biponnotes.iglyphic.com/the-concept-of-hoisting-in-javascript/</link>
					<comments>https://biponnotes.iglyphic.com/the-concept-of-hoisting-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[bipon68]]></dc:creator>
		<pubDate>Thu, 06 Feb 2020 07:20:20 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[javascript]]></category>
		<guid isPermaLink="false">https://bipon.me/?p=503</guid>

					<description><![CDATA[<p>Behind the Scenes, you will see that JavaScript always takes all the declarations first. That&#8217;s basically the hosting. Since this is the default behavior in JavaScript. In this article, I will discuss only the hosting specific. Since hosting is the default behavior, all functions in JavaScript are hosted in the Creation phase. That&#8217;s why we can actually call&#8230;<a href="https://biponnotes.iglyphic.com/the-concept-of-hoisting-in-javascript/" class="more-link">Continue reading <span class="screen-reader-text">The concept of hoisting in JavaScript</span></a></p>
<p>The post <a href="https://biponnotes.iglyphic.com/the-concept-of-hoisting-in-javascript/">The concept of hoisting in JavaScript</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Behind the Scenes, you will see that JavaScript always takes all the declarations first. That&#8217;s basically the hosting. Since this is the default behavior in JavaScript.  In this article, I will discuss only the hosting specific. </p>



<p>Since hosting is the default behavior, all functions in JavaScript are hosted in the Creation phase. That&#8217;s why we can actually call a function before declaring it. </p>



<pre class="wp-block-code"><code>customFunc();

 function customFunc(){
     let a = 77;
     let b = 4;
     let sum = a + b;
     console.log('Sum : ' + sum) 
 }</code></pre>



<figure class="wp-block-image"><img width="424" height="199" src="https://i2.wp.com/bipon.me/wp-content/uploads/2020/02/5-1.png?resize=424%2C199&#038;ssl=1" alt="" class="wp-image-504" srcset="https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/02/5-1.png?w=424&amp;ssl=1 424w, https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/02/5-1.png?resize=300%2C141&amp;ssl=1 300w" sizes="(max-width: 424px) 100vw, 424px" data-recalc-dims="1" /></figure>



<p> The reason for working is for JavaScript default behavior in the Creation phase.  Here are some points for convenience: </p>



<ul><li>The arguments list of the arguments that are passed to the function is created</li><li>The code scans all the functions and each function is stored in a variable object that usually points to the function.</li><li>Then it looks for the declarations of the code variables. And <code>undefined</code> sets the property for each declared variable .</li><li></li></ul>



<p>Then the code goes to the execution phase and the line-by-line code is executed according to the execution context.</p>



<p>And that is why since function declaration is earlier in the creation phase and the function call is executed in execution phase, we can use it even before declaring function.</p>



<p>But function expressions will not work this way. Because in function expressions we store our functions in a variable. And that variable <code>undefined</code>is set as the creation phase . The original function is executed later, so calling the function before declare in the function expression will show the error as it is not a function. Because it&#8217;s not really a function right now, just a variable.</p>



<pre class="wp-block-code"><code> miew();

 var miewVar = function(){
     console.log('Miew is calling')
 }</code></pre>



<figure class="wp-block-image"><img loading="lazy" width="506" height="95" src="https://i0.wp.com/bipon.me/wp-content/uploads/2020/02/3-1.png?resize=506%2C95&#038;ssl=1" alt="" class="wp-image-505" srcset="https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/02/3-1.png?w=506&amp;ssl=1 506w, https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/02/3-1.png?resize=300%2C56&amp;ssl=1 300w" sizes="(max-width: 506px) 100vw, 506px" data-recalc-dims="1" /></figure>



<p> Similarly, we can use a variable before declaring it. If you use a variable before declaring it <code>undefined</code> because of the Creation phase, it will not show any error, but it will show that variable <code>undefined</code> as it is set in Creation Phase . </p>



<pre class="wp-block-code"><code>console.log('Value of Miew: ' + miew);
var miew = 10</code></pre>



<figure class="wp-block-image"><img loading="lazy" width="427" height="117" src="https://i2.wp.com/bipon.me/wp-content/uploads/2020/02/6.png?resize=427%2C117&#038;ssl=1" alt="" class="wp-image-506" srcset="https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/02/6.png?w=427&amp;ssl=1 427w, https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/02/6.png?resize=300%2C82&amp;ssl=1 300w" sizes="(max-width: 427px) 100vw, 427px" data-recalc-dims="1" /></figure>



<p>But if you have never declared that variable later, you will want to use it: </p>



<pre class="wp-block-code"><code>console.log('Value of C: ' + miewC);</code></pre>



<figure class="wp-block-image"><img loading="lazy" width="434" height="115" src="https://i1.wp.com/bipon.me/wp-content/uploads/2020/02/7-1.png?resize=434%2C115&#038;ssl=1" alt="" class="wp-image-507" srcset="https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/02/7-1.png?w=434&amp;ssl=1 434w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/02/7-1.png?resize=300%2C79&amp;ssl=1 300w" sizes="(max-width: 434px) 100vw, 434px" data-recalc-dims="1" /></figure>



<p>So hopefully this time, there is a clear idea about hosting. However, for good practice it is not advisable to use a function before declaring it. But there&#8217;s definitely a lot of work to be done to understand how JavaScript works within the scene. In some situations, it may be helpful to have such a technique. </p><p>The post <a href="https://biponnotes.iglyphic.com/the-concept-of-hoisting-in-javascript/">The concept of hoisting in JavaScript</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://biponnotes.iglyphic.com/the-concept-of-hoisting-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">503</post-id>	</item>
		<item>
		<title>Behind the Scene in JavaScript</title>
		<link>https://biponnotes.iglyphic.com/behind-the-scene-in-javascript/</link>
					<comments>https://biponnotes.iglyphic.com/behind-the-scene-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[bipon68]]></dc:creator>
		<pubDate>Wed, 05 Feb 2020 17:34:50 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[javascript]]></category>
		<guid isPermaLink="false">https://bipon.me/?p=484</guid>

					<description><![CDATA[<p>If you understand how Code Behind works in the scene, you can write code at your convenience anyway.&#160;In this episode of mine today, I will discuss as much detail as possible about how JavaScript works within the scene. JavaScript is usually run in an environment.&#160;Often it may be our most widely used browser, or another&#8230;<a href="https://biponnotes.iglyphic.com/behind-the-scene-in-javascript/" class="more-link">Continue reading <span class="screen-reader-text">Behind the Scene in JavaScript</span></a></p>
<p>The post <a href="https://biponnotes.iglyphic.com/behind-the-scene-in-javascript/">Behind the Scene in JavaScript</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></description>
										<content:encoded><![CDATA[<p> If you understand how Code Behind works in the scene, you can write code at your convenience anyway.&nbsp;In this episode of mine today, I will discuss as much detail as possible about how JavaScript works within the scene. </p>



<p> JavaScript is usually run in an environment.&nbsp;Often it may be our most widely used browser, or another application program such as&nbsp;<a rel="noreferrer noopener" aria-label=" (opens in a new tab)" target="_blank" href="https://nodejs.org/en/">Node JS</a>&nbsp;. </p>



<p> Now from where this JavaScript is run, there is also a JavaScript engine (Google V8 Engine, Spider Monkey, JavaScript Core etc…) whose function is to execute this JavaScript code.&nbsp;Browsers use JavaScript to make JavaScript run.&nbsp;For example, Google Chrome uses Google V8 engine, Firefox uses Spider-Manki / Rihano, Internet Explorer and Edge servers use the engine, and Safari uses JavaScript-core / Nitro (JavaScript has many engines,&nbsp;<a rel="noreferrer noopener" href="https://en.wikipedia.org/wiki/JavaScript_engine#JavaScript_engines" target="_blank">see here for</a>&nbsp;full reference&nbsp;).</p>



<p> Now this JavaScript code executes in several steps and runs. </p>



<pre class="wp-block-code"><code>Code > Parser > Convert to machine code > code runs</code></pre>



<p>Here, the code passes through the parser first.&nbsp;Here the syntax error is usually checked.&nbsp;If a syntax error is found, then the error is thrown from here.&nbsp;And if all the syntax is done, then a data structure called Abstract Syntax Tree is created.</p>



<p>The next step is to convert this code into machine code, which our computer can actually understand.&nbsp;And finally our code is run.</p>



<p>Now why do you have to cross such steps before running a code?&nbsp;Yes, our computer does not understand anything but the machine code.&nbsp;Whatever language we write in code, it must be converted to machine code, or our computer may not understand it.</p>



<h2 id="9040">Execution Context and Execution Stack</h2>



<p>It is very important to have clear ideas about Execution Context and Execution Stack.&nbsp;There are many trick issues in JavaScript that are difficult to understand unless you can understand exactly the Execution Context and the Execution Stack.</p>



<p><strong>Execution Context:</strong></p>



<p>By default Javascript executes global context.&nbsp;Unlike some other languages, no space functions are executed.&nbsp;And JavaScript&#8217;s Global Execution Context is a browser&nbsp;<code>window</code>object.&nbsp;Declaring a global variable or assigning it to an&nbsp;<code>window</code>object is the same</p>



<pre class="wp-block-code"><code>let bGlobal = 77;</code></pre>



<p>Now I can see if it is <code>window </code>inside:<code>bGlobal </code></p>



<p>window.<code>bGlobal </code> </p>



<p> Then you see that this seam&nbsp;<code>bGlobal</code>shows the value of&nbsp;your declared </p>



<figure class="wp-block-image"><img loading="lazy" width="428" height="140" src="https://i2.wp.com/bipon.me/wp-content/uploads/2020/02/1.png?resize=428%2C140&#038;ssl=1" alt="" class="wp-image-485" srcset="https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/02/1.png?w=428&amp;ssl=1 428w, https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/02/1.png?resize=300%2C98&amp;ssl=1 300w" sizes="(max-width: 428px) 100vw, 428px" data-recalc-dims="1" /></figure>



<pre class="wp-block-code"><code>bGlobal === window.bGlobal //true</code></pre>



<figure class="wp-block-image"><img loading="lazy" width="422" height="174" src="https://i0.wp.com/bipon.me/wp-content/uploads/2020/02/2-1.png?resize=422%2C174&#038;ssl=1" alt="" class="wp-image-490" srcset="https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/02/2-1.png?w=422&amp;ssl=1 422w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/02/2-1.png?resize=300%2C124&amp;ssl=1 300w" sizes="(max-width: 422px) 100vw, 422px" data-recalc-dims="1" /></figure>



<p>That means two things are the same.&nbsp;So&nbsp;<code>window</code>it is the same thing to&nbsp;declare a global variable or assign it to an&nbsp;object.</p>



<p>However, if your environment is not a browser, then this Global Execution Context may be different depending on the environment.&nbsp;For example, Node JS&#8217;s Global Execution Context is an&nbsp;<code>global</code>object.&nbsp;Depending on the environment it may change.</p>



<p>Execution context is discussed in more detail later.</p>



<p><strong>Execution Stack:</strong></p>



<p>We&#8217;ll use an example to get a clear idea about Execution Stack in JavaScript and see how those codes are executed.</p>



<pre class="wp-block-code"><code>function A(){
    let a = ' call from a';
    B();
    console.log('Hey', name + a);
}
function B(){
    let b = ' call from b';
    C();
    console.log('Hey', name +  b)
}
function C(){
    let c = ' call from c';
    console.log('Hey', name + c)
}
A();</code></pre>



<p> If you run this code above, you will see how it runs: </p>



<figure class="wp-block-image"><img loading="lazy" width="429" height="129" src="https://i2.wp.com/bipon.me/wp-content/uploads/2020/02/3.png?resize=429%2C129&#038;ssl=1" alt="" class="wp-image-489" srcset="https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/02/3.png?w=429&amp;ssl=1 429w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/02/3.png?resize=300%2C90&amp;ssl=1 300w" sizes="(max-width: 429px) 100vw, 429px" data-recalc-dims="1" /></figure>



<p>The last ones are coming before and the first ones are later.&nbsp;How does it look random?&nbsp;Yes here we need to understand how the execution stack works.&nbsp;So only then will we have a clear idea of ​​how this code ran.&nbsp;First notice this diagram below: </p>



<figure class="wp-block-image"><img loading="lazy" width="720" height="386" src="https://i2.wp.com/bipon.me/wp-content/uploads/2020/02/5.png?resize=720%2C386&#038;ssl=1" alt="" class="wp-image-491" srcset="https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/02/5.png?w=720&amp;ssl=1 720w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/02/5.png?resize=300%2C161&amp;ssl=1 300w" sizes="(max-width: 720px) 100vw, 720px" data-recalc-dims="1" /></figure>



<p>Here the number codes will be executed according to the serial number.&nbsp;And the diagram on the right is the Basically Execution Stack.&nbsp;If you have no idea about the stack data structure, then the stack is a structure where the first in-out system is maintained.&nbsp;This means that there will be only one way to get data out, and whenever a data is extracted it can be extracted from the top.&nbsp;If you have several glass plates stacked on top of one, then if you want to take a plate, you have to take the top plate first, otherwise you will not be able to take it down or you will still have an accident.&nbsp;The plate that you place at the end of the stack should be taken if you want to take a plate on the data structure system, since this plate is on top of you.&nbsp;And the plate you put first will be the bottom,</p>



<p>Now when our code is number 1 it is&nbsp;assigned to the&nbsp;<code>name</code>variable&nbsp;<code>Bipon</code>.&nbsp;Then only the function definitions go one by one&nbsp;<code>A()</code>, then&nbsp;<code>B()</code>and finally into the&nbsp;<code>C()</code>execution stack on the global execution context.&nbsp;Nothing will be excluded from inside the function as we have not called any of the functions yet.</p>



<p>Then we&nbsp;<code>A()</code>call the function&nbsp;at number 5&nbsp;.&nbsp;It will now be positioned on the global execution context in the first execution stack and will now&nbsp;<code>A()</code>start executing the code from within.&nbsp;Now with a variable at number 1, some data is assigned there.&nbsp;But again another function&nbsp;<code>B()</code>is called&nbsp;at number 5&nbsp;.&nbsp;So now Execution Stack A&nbsp;<code>A()</code>will have another new execution context&nbsp;<code>B()</code>on it and now&nbsp;<code>B()</code>the code will start&nbsp;executing&nbsp;from within.&nbsp;Now here also some data has been assigned to a new variable in number 1.&nbsp;Again another function called number 7&nbsp;<code>C()</code>is called.&nbsp;So now another execution context&nbsp;<code>C()</code>will be found in the&nbsp;execution stack&nbsp;and now&nbsp;<code>C()</code>the code will start executing from within.&nbsp;Now <code>C()</code>Inside number 1 again, some new data is assigned with a new variable.&nbsp;And the console is logged in the next line which will now show on your console.&nbsp;So the log here is the first thing you see in your output.&nbsp;Now&nbsp;<code>C()</code>execute is over and it will move away.&nbsp;So now the execution context will go&nbsp;<code>B()</code>as it is now at the top of the execution stack.&nbsp;Now&nbsp;<code>B()</code>inside the console log of the number 12 will be printed on the output and so you will see this as the output in the second position.&nbsp;Now the same way&nbsp;<code>B()</code>, the last one and the execution stack will be gone.&nbsp;Now the execution stack will be at the top&nbsp;<code>A()</code>.&nbsp;So now&nbsp;<code>A()</code>it will be executed.<code>A()</code>Console logs located at number 5 will be printed at the output and this function will be finished and removed from the execution stack.&nbsp;And so you can see the output here.&nbsp;This is how the execution stack works in JavaScript.&nbsp;And so we see output like this.</p>



<p><strong>Details on Execution Context:</strong></p>



<p>It is very important to know the details of the execution context.&nbsp;You may have seen in JavaScript that you can call before you define a function and that code will work perfectly.</p>



<pre class="wp-block-code"><code>miew();
function miew() {
 console.log('Miew');
}</code></pre>



<p>This code will work fine if you run it all together.</p>



<p>Or you can use a variable before defining it (before defining it will show the value undefined, no error).</p>



<pre class="wp-block-code"><code>console.log(miew);
var miew = 'Hello World!';</code></pre>



<p>Output will come like this but no error will come </p>



<p><code>undefined</code></p>



<figure class="wp-block-image"><img loading="lazy" width="381" height="46" src="https://i1.wp.com/bipon.me/wp-content/uploads/2020/02/7.png?resize=381%2C46&#038;ssl=1" alt="" class="wp-image-492" srcset="https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/02/7.png?w=381&amp;ssl=1 381w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/02/7.png?resize=300%2C36&amp;ssl=1 300w" sizes="(max-width: 381px) 100vw, 381px" data-recalc-dims="1" /></figure>



<p>What causes it?&nbsp;Yes, that&#8217;s why we need to have a more in-depth knowledge of execution context so you can understand why it works.</p>



<p>When a function is called, there are two stages:</p>



<p>2.&nbsp;Creation phase</p>



<p>2.&nbsp;Execution Phase</p>



<p><strong>2.&nbsp;Creation Phase: In</strong>&nbsp;Creation Phase, the variable object is created first.&nbsp;Then the scope chain is created.</p>



<p>What happens in the creation phase directly in Bengal:</p>



<ul><li>The arguments list of the arguments that are passed to the function is created</li><li>The code scans all the functions and each function is stored in a variable object that usually points to the function.</li><li>Then it looks for the declarations of the code variables.&nbsp;And&nbsp;<code>undefined</code>sets the property for&nbsp;each declared variable&nbsp;.</li></ul>



<p><strong>2.&nbsp;Execution Phase:</strong>&nbsp;Then the code is executed in this phase.&nbsp;In the case of code execution, the code execution is executed by executing the context.&nbsp;This is why calling a function before defining it works fine.&nbsp;If you use any other variable before declaring it&nbsp;<code>undefined</code> is set as a&nbsp;value&nbsp;and no error shows.</p>



<p>Reference Source : <a href="https://codeburst.io/js-essentials-the-javascript-engine-302ff38e8465">JS Essentials: The JavaScript Engine</a> , <a href="https://codeburst.io/@misaogura">Execution Context</a> , <a href="https://medium.com/better-programming/understanding-the-this-keyword-in-javascript-cb76d4c7c5e8">Understanding the “this” Keyword in JavaScript</a> , <a href="https://medium.com/%E0%A6%AA%E0%A7%8D%E0%A6%B0%E0%A7%8B%E0%A6%97%E0%A7%8D%E0%A6%B0%E0%A6%BE%E0%A6%AE%E0%A6%BF%E0%A6%82-%E0%A6%AA%E0%A6%BE%E0%A6%A4%E0%A6%BE/%E0%A6%9C%E0%A6%BE%E0%A6%AD%E0%A6%BE%E0%A6%B8%E0%A7%8D%E0%A6%95%E0%A7%8D%E0%A6%B0%E0%A6%BF%E0%A6%AA%E0%A7%8D%E0%A6%9F%E0%A6%83-%E0%A6%AC%E0%A6%BF%E0%A6%B9%E0%A7%8D%E0%A6%AF%E0%A6%BE%E0%A6%87%E0%A6%A8%E0%A7%8D%E0%A6%A1-%E0%A6%A6%E0%A7%8D%E0%A6%AF%E0%A6%BE-%E0%A6%B8%E0%A7%80%E0%A6%A8-4857f19f4059">Behind the Scene</a></p><p>The post <a href="https://biponnotes.iglyphic.com/behind-the-scene-in-javascript/">Behind the Scene in JavaScript</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://biponnotes.iglyphic.com/behind-the-scene-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">484</post-id>	</item>
		<item>
		<title>Relocation in Malaysia &#8211; Resume Preparation and Interview</title>
		<link>https://biponnotes.iglyphic.com/relocation-in-malaysia-resume-preparation-and-interview/</link>
					<comments>https://biponnotes.iglyphic.com/relocation-in-malaysia-resume-preparation-and-interview/#comments</comments>
		
		<dc:creator><![CDATA[bipon68]]></dc:creator>
		<pubDate>Sat, 01 Feb 2020 18:29:06 +0000</pubDate>
				<category><![CDATA[Malaysia]]></category>
		<category><![CDATA[Relocation]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[tour]]></category>
		<category><![CDATA[travel]]></category>
		<guid isPermaLink="false">https://bipon.me/?p=479</guid>

					<description><![CDATA[<p>Relocation does not seem to be what it is.&#160;For those who don&#8217;t know, this is a kind of job offer where you have to go from one place to another (basically to another country) and your company will be responsible for all the responsibilities you go through.&#160;In some cases, the company also provides you with&#8230;<a href="https://biponnotes.iglyphic.com/relocation-in-malaysia-resume-preparation-and-interview/" class="more-link">Continue reading <span class="screen-reader-text">Relocation in Malaysia &#8211; Resume Preparation and Interview</span></a></p>
<p>The post <a href="https://biponnotes.iglyphic.com/relocation-in-malaysia-resume-preparation-and-interview/">Relocation in Malaysia – Resume Preparation and Interview</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Relocation does not seem to be what it is.&nbsp;For those who don&#8217;t know, this is a kind of job offer where you have to go from one place to another (basically to another country) and your company will be responsible for all the responsibilities you go through.&nbsp;In some cases, the company also provides you with the cost of shipping and shipping costs.&nbsp;And sometimes there is another job offer called Relocation with Visa Sponsorship, where the company recruiting you will take on all the legal papers, visa applications, visa renewals etc. to take you to that country.&nbsp;Although visa sponsorship is a little lower in the US, Canada, Germany, etc., you will find many relocation offers only when looking in South Asian and surrounding countries where your visa company will sponsor.&nbsp;So last month I relocated to a similar company and came to Malaysia to work.&nbsp;This blog is written to share my experiences and tips with everyone.</p>



<h2 id="রেজিউম-তৈরী">Resume ready</h2>



<p>Before applying for relocation offer, you must first prepare yourself.&nbsp;You can prepare yourself in many ways.&nbsp;You can prepare yourself based on what technology is going on in the market, what is demanded.&nbsp;You can earn a few professional certifications.&nbsp;However, if you do not prepare yourself, if you do not present yourself in your resume or CV, then there will be no profit.&nbsp;Even referring someone you know will reduce your chances of being shortlisted.</p>



<p>A few days ago I shared some resume tips for juniors on Facebook.&nbsp;I thought I&#8217;d write it down here.</p>



<ul><li><strong>Name Capitalization Incorrect</strong>&nbsp;: The first thing you should read when watching a CV is the eye.&nbsp;Correctly writing the name is not just a CV, mail body, cover letter, email account name is always important.&nbsp;Many people see all the lowercase or all the capital case names.&nbsp;Without sufficient reason or style, such writing is inappropriate.</li><li><strong>Non-alignment of font sizes of different sections</strong>&nbsp;: Many see the name on the CV written in the normal font (usually 3 or 4), but they have given the font size to enter the project name and description.&nbsp;They also look very bad.&nbsp;A document should not use more than 2-5 sizes.&nbsp;At the same time, there is no need to bolt unnecessarily.&nbsp;Even if there is a consistency.&nbsp;For example, all year or project years can be italicized.&nbsp;Or all company names can be bolded.</li><li><strong></strong>Miscellaneous&nbsp;<strong>Technologies Names</strong>&nbsp;: Javascript, Django, java, php, mysql, html, openGL, UBUNTU, MAC OS all have incorrect capitalization.&nbsp;If anyone works for 5 years with a technology, then misspelling will not be accepted.&nbsp;On top of that, the string case is a very important thing.</li><li><strong>Sample Term Release Online</strong>&nbsp;: / where I can utilize my skills and potential efficiently, / / ​​I have strong management skill /, / I can work under pressure / Term like these are very well known.&nbsp;As well as working in a project or company, the manager or Timlid will understand after six months or a year how much stress or how much pressure you can take.&nbsp;So even though it may be a little thoughtful, it should be time to think about the object or the summary part.&nbsp;And of course not exactly copying from anyone.</li><li><strong>Copying Others&#8217; CV / Resume Format</strong>&nbsp;: Nowadays everyone has a CV / Resume.&nbsp;So, it should not be the same format for everyone.&nbsp;For example, the CV of an entrepreneur or a product manager&#8217;s CV, and not a graphics designer&#8217;s or a multimedia expert&#8217;s CV.&nbsp;So it would be best not to blindly imitate.&nbsp;And imitating it is good to follow it with wisdom.&nbsp;As a senior engineer who has been working in the market for 5 years, the reason why he claims 5/5 skill in PHP / Java may not be the same for everyone.&nbsp;So it&#8217;s foolish to claim yourself a 4/5 star by comparing it with him.</li><li><strong>Online portfolio</strong>: Nowadays everyone has blogs, websites.&nbsp;Or even if these are not GitHub, LinkedIn.&nbsp;It is seen that a few days before sending the CV, GitHub opened the repo and uploaded the same project on the same day and gave it a link.&nbsp;It&#8217;s good in one direction.&nbsp;The problem is, if you do not maintain the project, or have no documentation or screenshots of the project, the project will not work.&nbsp;And recruiters don&#8217;t even have time to check inside your code.&nbsp;So if you project try to write README beautifully.&nbsp;You can also give a sample command / screenshot.&nbsp;And yes, don&#8217;t build a repository with binary files, object files, APK / IPK files.&nbsp;Whether for security or for alchemy, no one will take down your binary and install it.&nbsp;Try publishing on Sourceforge / Play Store / App Store.&nbsp;And if there is no project,&nbsp;So no need to just give GitHub links.&nbsp;It can cause unnecessary upset.</li><li><strong>Not counting margins, alignments, padding</strong>&nbsp;: Many people do not maintain the format properly while making the CV.&nbsp;Then work with the text box.&nbsp;And the textbox may not match the original margin of the document.&nbsp;As a result, the writing is bent aside.&nbsp;Or the 9th Ward has gone to the next page.&nbsp;Or, as many people have seen in writing educational backgrounds, Sal, Varsity&#8217;s name, CGPA, has written these similar columns.&nbsp;As a result, the name of Varsity has become 2-5 lines.&nbsp;However, CGPA is currently available with 20% of the available pages.&nbsp;These mistakes can be fixed with a little effort.</li><li><strong>PDF / docx / zip not just sending</strong>&nbsp;PDFs: Usually the most common document in PDF format is.&nbsp;Then if you want a recruiter, or have a form function, you can provide a dock file.&nbsp;However, many times, only the docx file was sent.&nbsp;This can also be a cause for annoyance because the latest Microsoft Office may not be on everyone&#8217;s PC or all the designs can be randomized to convert the document.&nbsp;Many can be seen as a hardy mustard.&nbsp;Zips over PDF and sends.&nbsp;They just cause resentment.</li><li><strong>Understand the difference between the name of the company and the technology</strong>On many CVs, it is written in either Oracle Expert, or Windows XP / Ten Expert, or Linux Expert.&nbsp;Most companies have multiple products.&nbsp;For example, if I say Oracle, will I understand the Oracle database, or understand Java, or understand MySQL?&nbsp;Again Linux, however, has many sections like Networking, Security, Applications, Embedded, Infrastructure.&nbsp;Many people see this in HTML, CSS, Expert.&nbsp;Now HTML, CSS is the pre-Choo framework in the market.&nbsp;If there is a specific framework then it should be named Mansion.&nbsp;In the same way, there are lots of things on the Windows platform including C Sharp, WPF, .NET, ASP.NET, Driver Development, MFC.&nbsp;Expert on Windows XP or 8 means I can also assume that you are an expert to setup.&nbsp;Haha&nbsp;And yes&nbsp;But not all that IDE can do.&nbsp;So being familiar with JetBrains or VS means that you won&#8217;t always be caught up in Expert.&nbsp;So it&#8217;s nice to be very specific.</li><li><strong>Attending Seminars and Courses</strong>&nbsp;: Many may disagree with me on this point.&nbsp;It is almost like I saw CVT taking part in a robotics or LICT course or seminar.&nbsp;Well, when I see a CV like this, I skip the seminar section.&nbsp;It is not true that anyone will ever become a good programmer if they attend seminars or bootcamps.&nbsp;But yes, if anyone can go to a seminar or bootcamp to build a portfolio of something they can learn, then it is definitely worth it.&nbsp;So for the seminar I attended the 3 solid project without having to write the type 1 solid project that has been Maintained, it is good to have such thing in CV.</li></ul>



<p>The point is, make your resume such that, at a glance, the recruiter understands what you are expecting or where your potentials are strongest.&nbsp;This is why a resume is good for one to two pages.&nbsp;It is best not to do anything so that recruiters are not disturbed.&nbsp;And yes, give your contact number correctly, especially your name, phone number, email and home address so that it doesn&#8217;t go wrong.&nbsp;Because later on all your contracts, visa applications, bank accounts, etc. will be created under these names.</p>



<h2 id="ইন্টারভিউ-দেওয়া">Given the interview</h2>



<p>If you like referring your resume or applying for a relocation offer, you will receive an interview call from HR or relocated companies.&nbsp;Usually these interviews are done in a few steps.&nbsp;The first step can be a simple phone call (Skype or Hangouts), the next step will be two technical interviews where the senior engineers of the company will verify you.&nbsp;If they give you the green signal you will be taken to the CEO or those in the lead position.&nbsp;They will examine your non-technical issues, such as your leadership, how you set up a job,&nbsp;How to get work done affecting others.&nbsp;It will also be verified as a human being there.&nbsp;Finally if you are called from HR then you will be shortlisted.&nbsp;Basically at this level you will be asked questions like when will you be able to win a salary&nbsp;So do not neglect any step.&nbsp;There are some things to keep in mind when giving an interview.</p>



<ul><li>Understand correctly during the interview.&nbsp;Your timezone may differ from company to country.&nbsp;So set a time mutually.&nbsp;If you can, then keep your direction flexible as it will take you to the working hours of the company.&nbsp;You will prepare accordingly.</li><li>Install useful apps (Skype or Google Hangouts) when interviewing online.&nbsp;Keep good internet connection ready.&nbsp;You can keep the mobile data ready so that the connection is gone when the connection is gone.</li><li>If there is a video interview, please wear a formal dress.&nbsp;At the same time keep your background clean (if homeless).&nbsp;Never give interviews outside the home (on the ground, on the terrace, in restaurants).&nbsp;It&#8217;s really good to have someone unwanted in the room while you&#8217;re online.</li><li>If you do not want to use mobile phone for video call, you can buy webcam.</li><li>Be as relaxed as possible during the interview.&nbsp;Answer exactly what the question will be.&nbsp;Explain if you know, or skip if you don&#8217;t know.&nbsp;Don&#8217;t pretend not to know.&nbsp;And answer as needed.&nbsp;We want to say more than everything.&nbsp;It would be better to skip this habit.</li><li>Say words, thank yous, etc. as per your need.&nbsp;If you do not understand, please ask again.</li><li>If you can keep HR in the mail at the end of the interview then it will be easy for you to follow up.</li></ul>



<p>In the next phase I will talk about how to negotiate with the company on salaries and other benefits.&nbsp;Be good everyone</p>



<p><code>Next Post</code> Relocation in Malaysia &#8211; Dealing with Companies and Passing Employment</p>



<p><a href="https://bits.mdminhazulhaque.io/malaysia/malaysia-relocation-preparation-apply-interview-etc.html">Bengali Article</a></p><p>The post <a href="https://biponnotes.iglyphic.com/relocation-in-malaysia-resume-preparation-and-interview/">Relocation in Malaysia – Resume Preparation and Interview</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://biponnotes.iglyphic.com/relocation-in-malaysia-resume-preparation-and-interview/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">479</post-id>	</item>
		<item>
		<title>Relocation Guide to Malaysia</title>
		<link>https://biponnotes.iglyphic.com/relocation/</link>
					<comments>https://biponnotes.iglyphic.com/relocation/#respond</comments>
		
		<dc:creator><![CDATA[bipon68]]></dc:creator>
		<pubDate>Sat, 01 Feb 2020 18:12:53 +0000</pubDate>
				<category><![CDATA[Malaysia]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[Relocation]]></category>
		<category><![CDATA[tour]]></category>
		<category><![CDATA[travel]]></category>
		<guid isPermaLink="false">https://bipon.me/?p=477</guid>

					<description><![CDATA[<p>For those who want to relocate to Malaysia, or have received a relocation offer but are confused about how and when to do it, I wrote this blog post series.&#160;Not only Relocation, those traveling to Malaysia or other countries who are going to relocate will also get some ideas from this series. Relocation in Malaysia&#8230;<a href="https://biponnotes.iglyphic.com/relocation/" class="more-link">Continue reading <span class="screen-reader-text">Relocation Guide to Malaysia</span></a></p>
<p>The post <a href="https://biponnotes.iglyphic.com/relocation/">Relocation Guide to Malaysia</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></description>
										<content:encoded><![CDATA[<p> For those who want to relocate to <code>Malaysia</code>, or have received a <code>relocation </code>offer but are confused about how and when to do it, I wrote this blog post series.&nbsp;Not only Relocation, those traveling to Malaysia or other countries who are going to relocate will also get some ideas from this series. </p>



<ol><li><a href="https://bipon.me/relocation-in-malaysia-resume-preparation-and-interview/">Relocation in Malaysia &#8211; Resume Preparation and Interview</a></li><li>Relocation in Malaysia &#8211; Bid negotiations and employment passes with the company</li><li>Relocation in Malaysia &#8211; Applying for a Visa</li><li>Relocation in Malaysia &#8211; Last minute preparation</li><li>Relocation in Malaysia &#8211; Immigration</li><li>Relocation in Malaysia &#8211; Lifestyle Tips</li></ol>



<p><a href="https://bits.mdminhazulhaque.io/malaysia/malaysia-relocation-full-guide.html">Bengali Article </a></p><p>The post <a href="https://biponnotes.iglyphic.com/relocation/">Relocation Guide to Malaysia</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://biponnotes.iglyphic.com/relocation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">477</post-id>	</item>
		<item>
		<title>JavaScript: async and await</title>
		<link>https://biponnotes.iglyphic.com/javascript-async-and-await/</link>
					<comments>https://biponnotes.iglyphic.com/javascript-async-and-await/#respond</comments>
		
		<dc:creator><![CDATA[bipon68]]></dc:creator>
		<pubDate>Tue, 28 Jan 2020 10:02:27 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[async]]></category>
		<category><![CDATA[await]]></category>
		<category><![CDATA[javascript]]></category>
		<guid isPermaLink="false">https://bipon.me/?p=469</guid>

					<description><![CDATA[<p>If the arrow function is: This is how you can identify asynchronous code in your function. This time you have to identify the original asynchronous codes one by one and tell Javascript that this is my promise that it cannot go to the next instruction until it is solved. Before that we will need a promiss, right? Yes,&#8230;<a href="https://biponnotes.iglyphic.com/javascript-async-and-await/" class="more-link">Continue reading <span class="screen-reader-text">JavaScript: async and await</span></a></p>
<p>The post <a href="https://biponnotes.iglyphic.com/javascript-async-and-await/">JavaScript: async and await</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></description>
										<content:encoded><![CDATA[<pre class="wp-block-code"><code>async function customAsyncCode() {
   // Asynchronous Codes
}  </code></pre>



<p> If the arrow function is: </p>



<pre class="wp-block-code"><code> const customAsyncCode = async() => {      
     // Asynchronous Codes    
} </code></pre>



<p> This is how you can identify asynchronous code in your function. This time you have to identify the original asynchronous codes one by one and tell Javascript that this is my promise that it cannot go to the next instruction until it is solved. Before that we will need a promiss, right? Yes, let me start with a promise: </p>



<pre class="wp-block-code"><code>      const a1 = new Promise((resolve, reject) => {
        setTimeout(() => {
          if(true){
            resolve('a 1 resolved');
          }else{
            reject('a 1 error');
          }
        }, 3000)
      })</code></pre>



<p> Now we will handle this promise inside an asynchronous function. That is why I will call our Promise talk inside with an asynchronous identifying function. Now this is where we <code>await</code>need the keyword. With this we will identify our Promise so that this Promise does not go to the next instruction until completed: </p>



<pre class="wp-block-code"><code>const promiseHandle = async() => {
        const data = await a1;
        console.log(data);
      }
      promiseHandle();</code></pre>



<p> Notice here that I just printed the data from our premise in the next line. Yes, here <code>async</code>is <code>await</code>the magic of it. It helps our asynchronous code behave asynchronously so that we no longer have to call the callback. We can retrieve data with a single line-by-line instruction. Now if you call this function you will see our desired data: </p>



<pre class="wp-block-code"><code>promiseHandle()</code></pre>



<p> Now you will see that your console is printed on the next line of console log. If you have trouble understanding it, then <code>setTimeout()</code>you can extend the time and test it yourself by working code synchronously: </p>



<figure class="wp-block-image"><img loading="lazy" width="486" height="182" src="https://i0.wp.com/bipon.me/wp-content/uploads/2020/01/1-5.png?resize=486%2C182&#038;ssl=1" alt="" class="wp-image-470" srcset="https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/01/1-5.png?w=486&amp;ssl=1 486w, https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/01/1-5.png?resize=300%2C112&amp;ssl=1 300w" sizes="(max-width: 486px) 100vw, 486px" data-recalc-dims="1" /></figure>



<p> Now if the promise is rejected? Yes then <code>try…catch</code>we can handle this rejection or error with our previous block. Before that, our promise to create another such thing: </p>



<pre class="wp-block-code"><code>      const a1Rejection = new Promise((resolve, reject) => {
        setTimeout(() => {
          if(true){
            reject('a 1 error');
          }else{
            resolve('a 1 resolved');
          }
        }, 3000)
      })</code></pre>



<p> Now we <code>async await</code>will create our function. But before we can take data from this promise, we have to <code>try…catch</code>put the whole thing inside the block. And with that <code>catch</code>block we can access our error message: </p>



<pre class="wp-block-code"><code>     const promiseErrorHandle = async() => {
        try{
          const data = await a1Rejection;
          console.log(data);
        }catch(err){
          console.log(err);
        }
      }
</code></pre>



<pre class="wp-block-code"><code>promiseErrorHandle();</code></pre>



<p><strong>An alternative method to handle more than one promise</strong> , now we want to promise more than they can handle  synchronously. Suppose we have two promise: </p>



<pre class="wp-block-code"><code>   const a1 = new Promise((resolve, reject) => {
        setTimeout(() => {
          if(true){
            resolve('a 1 resolved');
          }else{
            reject('a 1 error');
          }
        }, 3000)
      })</code></pre>



<p>

Another one

</p>



<pre class="wp-block-code"><code>     const a2 = new Promise((resolve, reject) => {
        setTimeout(() => {
            if(true) {
              resolve('a 2 Resolved');
            } else {
              reject('a 2 Error');
            }
        }, 3000)
      })</code></pre>



<p> Now here&#8217;s something to understand. If we <code>Promise.all</code>use it, let&#8217;s see if it returns: </p>



<pre class="wp-block-code"><code>console.log('Return all Promise :', Promise.all([a1, a2]))</code></pre>



<p> That means the promise also returns: </p>



<figure class="wp-block-image"><img loading="lazy" width="571" height="146" src="https://i0.wp.com/bipon.me/wp-content/uploads/2020/01/2-2.png?resize=571%2C146&#038;ssl=1" alt="" class="wp-image-471" srcset="https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/01/2-2.png?w=571&amp;ssl=1 571w, https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/01/2-2.png?resize=300%2C77&amp;ssl=1 300w" sizes="(max-width: 571px) 100vw, 571px" data-recalc-dims="1" /></figure>



<p> So with that we can easily handle multiple promises like this: </p>



<pre class="wp-block-code"><code> const handleMultiplePromise = async() => {
        const data = await Promise.all([a1, a2]);
        console.log(data);
}</code></pre>



<p> Well then how come their data? Yes the data will come in the same array size as we have seen before. Now call the function: </p>



<pre class="wp-block-code"><code>handleMultiplePromise();
</code></pre>



<figure class="wp-block-image"><img loading="lazy" width="568" height="182" src="https://i2.wp.com/bipon.me/wp-content/uploads/2020/01/3-3.png?resize=568%2C182&#038;ssl=1" alt="" class="wp-image-472" srcset="https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/01/3-3.png?w=568&amp;ssl=1 568w, https://i0.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/01/3-3.png?resize=300%2C96&amp;ssl=1 300w" sizes="(max-width: 568px) 100vw, 568px" data-recalc-dims="1" /></figure><p>The post <a href="https://biponnotes.iglyphic.com/javascript-async-and-await/">JavaScript: async and await</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://biponnotes.iglyphic.com/javascript-async-and-await/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">469</post-id>	</item>
		<item>
		<title>Promise in JavaScript</title>
		<link>https://biponnotes.iglyphic.com/promise-in-javascript/</link>
					<comments>https://biponnotes.iglyphic.com/promise-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[bipon68]]></dc:creator>
		<pubDate>Mon, 27 Jan 2020 18:10:29 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[front-end]]></category>
		<category><![CDATA[front-end-development]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[promise]]></category>
		<guid isPermaLink="false">https://bipon.me/?p=464</guid>

					<description><![CDATA[<p>Creating a Promise: The task of the Promise is to handle such asynchronous operations. Now we are running the operation on a remote server, but until data arrives we cannot say that operation will not succeed or fail. And basically, the promise works to handle these. In most cases, we do not have to create our own promises. We&#8230;<a href="https://biponnotes.iglyphic.com/promise-in-javascript/" class="more-link">Continue reading <span class="screen-reader-text">Promise in JavaScript</span></a></p>
<p>The post <a href="https://biponnotes.iglyphic.com/promise-in-javascript/">Promise in JavaScript</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>Creating a <code>Promise</code>:</strong></p>



<p> The task of the <code>Promise </code>is to handle such <code>asynchronous operations</code>. Now we are running the operation on a remote server, but until data arrives we cannot say that operation will not succeed or fail. And basically, the promise works to handle these. In most cases, we do not have to create our own promises. We handle Just Promise. The basic structure of the promise is that the library we work with will be implemented from the system. We have to handle just Promise. But I&#8217;ll also look at how we can create our own promise here. </p>



<pre class="wp-block-code"><code>    let bb = new Promise((resolve, reject) => {
      let a = 1 + 1;
      if(a == 2){
        resolve('Success man!')
      }else{
        reject('Faild man!')
      }
    })

    bb.then((message) => {
      console.log('Get', message)
    }).catch((message) =>{
      console.log('Get', message)
    })</code></pre>



<p> Promise takes two arguments, <code>resolve</code>and <code>reject</code>. </p>



<p><strong>Handle Promise:</strong></p>



<p> Now we will handle whether the Promise has succeeded or failed. In that case, if the Promise is successful then we can chain our <code>bb</code> function and <code>.then()</code>give a callback function here, which <code>resolve</code>will run if the Promise is successful or otherwise: </p>



<pre class="wp-block-code"><code>    bb.then((message) => {
      console.log('Get', message)
    }).catch((message) =>{
      console.log('Get', message)
    })</code></pre>



<p><a href="https://bipon.me/callback-function/">Callback</a></p>



<p> After that <code>true</code>argument <code>resolve</code>, our callback will be triggered by the promise : </p>



<pre class="wp-block-code"><code>  bb.then((message) => {
      console.log('Get', message)
    })</code></pre>



<p> And if the promise is rejected, then we need <code>.catch()</code>to handle it in another chain operation with a callback function. Now we do not know whether the operation will succeed or fail. In that case, we <code>.then()</code>have to <code>.catch()</code>keep both. <code>.catch()</code>If for any reason we will run <code>reject</code>: </p>



<pre class="wp-block-code"><code>.catch((message) =>{
      console.log('Get', message)
    })</code></pre>



<p> The arguments <code>false</code>given here <code>reject</code>will be from the promise . And so  <code>catch</code>the callback will run inside the block after the operation is finished :</p>



<pre class="wp-block-code"><code>  let bb = new Promise((resolve, reject) => {
      let a = 1 + 2;
      if(a == 2){
        resolve('Success man!')
      }else{
        reject('Faild man!')
      }
    })

    bb.then((message) => {
      console.log('Get', message)
    }).catch((message) =>{
      console.log('Get', message)
    })</code></pre>



<p>The <code>bb</code>function that we first returned the Promise here, the creation of the Promise, in most cases, does not require us to write. Rather, the system we use to exchange data, or use the library, is coded as a part of how to do <code>resolve</code>or not do <code>reject</code>it. In most cases, the promise of our return <code>.then()</code>, and <code>.catch()</code>with the handle. The callbacks that are used inside, in most cases, the data we want from our remote server comes as arguments. We can access those arguments from within a callback. </p>



<p><strong>Handling</strong> Multiple Promises: At times, we may have to handle multiple promos. For example, we have two premises: </p>



<pre class="wp-block-code"><code>      const a1 = new Promise((resolve, reject) => {
        setTimeout(() => {
          if(true){
            resolve('a 1 resolved');
          }else{
            reject('a 1 error');
          }
        }, 3000)
      })</code></pre>



<p> We can also directly create promises like this. Below I made another Promise: </p>



<pre class="wp-block-code"><code>      const a2 = new Promise((resolve, reject) => {
        setTimeout(() => {
            if(true) {
              resolve('a 2 Resolved');
            } else {
              reject('a 2 Error');
            }
        }, 3000)
      })</code></pre>



<p>

Then&nbsp;<code>.then()</code>I can make a callback call which will run soon after these two promises are completed.&nbsp;And the data from these promos will be arrayed in this callback function:

</p>



<pre class="wp-block-code"><code>Promise.all([a1, a2]).then((promiseArr) => {console.log(promiseArr)}) </code></pre><p>The post <a href="https://biponnotes.iglyphic.com/promise-in-javascript/">Promise in JavaScript</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://biponnotes.iglyphic.com/promise-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">464</post-id>	</item>
		<item>
		<title>Why people in Silicon Valley are against the use of technology for children</title>
		<link>https://biponnotes.iglyphic.com/why-people-in-silicon-valley-are-against-the-use-of-technology-for-children/</link>
					<comments>https://biponnotes.iglyphic.com/why-people-in-silicon-valley-are-against-the-use-of-technology-for-children/#respond</comments>
		
		<dc:creator><![CDATA[bipon68]]></dc:creator>
		<pubDate>Sat, 25 Jan 2020 03:05:48 +0000</pubDate>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[জন সচেতনতা]]></category>
		<guid isPermaLink="false">https://bipon.me/?p=433</guid>

					<description><![CDATA[<p>Many of the technologies and apps that make them embedded in our daily lives are now trying to keep their children away from it. Many of these young innovators working in Silicon Valley have established the world&#8217;s largest technology company.&#160;Many of them have married themselves and now become parents. Some of them are now trying&#8230;<a href="https://biponnotes.iglyphic.com/why-people-in-silicon-valley-are-against-the-use-of-technology-for-children/" class="more-link">Continue reading <span class="screen-reader-text">Why people in Silicon Valley are against the use of technology for children</span></a></p>
<p>The post <a href="https://biponnotes.iglyphic.com/why-people-in-silicon-valley-are-against-the-use-of-technology-for-children/">Why people in Silicon Valley are against the use of technology for children</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Many of the technologies and apps that make them embedded in our daily lives are now trying to keep their children away from it.</p>



<p>Many of these young innovators working in Silicon Valley have established the world&#8217;s largest technology company.&nbsp;Many of them have married themselves and now become parents.</p>



<p>Some of them are now trying to get their own children to use these technologies and apps.</p>



<p>And they have no reservations about the ban.</p>



<p>Steve Jobs, the late Apple&#8217;s founder, once admitted in 20 that he and his wife, Lauren Powell, had set aside some time for their children to use these technologies at home.</p>



<p>Microsoft founder Bill Gates also tied his children&#8217;s time to the screen.&nbsp;Mobile phones were banned from reading tables.</p>



<p>Facebook founder Mark Zuckerberg wrote in a letter he wrote to his newborn August 29, asking him to &#8220;go out of the room and play&#8221;.</p>



<p>But why are Silicon Valley technology innovators trying to keep their children off the screen after becoming parents?</p>



<h2>Technology-free childhood</h2>



<p>Pierre Laurent, a tech company executive in the San Francisco Bay Area.&nbsp;He is also the board director of the Waldorf School of the Peninsular, a popular private school in Silicon Valley.</p>



<p>Students of this school avoided technology and apps until they reached adolescence.</p>



<figure class="wp-block-image"><img loading="lazy" width="624" height="351" src="https://i1.wp.com/bipon.me/wp-content/uploads/2020/01/107258617_screentime2.jpg?resize=624%2C351&#038;ssl=1" alt="" class="wp-image-436" srcset="https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/01/107258617_screentime2.jpg?w=624&amp;ssl=1 624w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/01/107258617_screentime2.jpg?resize=300%2C169&amp;ssl=1 300w" sizes="(max-width: 624px) 100vw, 624px" data-recalc-dims="1" /><figcaption>Children have to keep pace with real life.</figcaption></figure>



<p>Laurent, who sent his three children to the school to study, told the BBC that three-quarters of the parents there were somehow working at various tech companies.</p>



<p>They were asked by the school to keep an eye on the negative effects of these technologies on children&#8217;s education.</p>



<p>&#8220;When you were a kid, you had nothing to learn from a piece of glass. You have to actually use all the senses. You have to use the brain with everything you have,&#8221; he said.</p>



<h2>Incompatibility</h2>



<p>Waldorf School has been in the news ever since the news of the protests by Silicon Valley officials was published in the news.</p>



<p>Known throughout the world as a technology hub, the Silicon Valley school is emphasizing an education where children will benefit most.</p>



<p>The curriculum of this school emphasizes &#8220;the skills of the twenty-first century,&#8221; which includes the discipline of one&#8217;s life, the ability to think independently, work in groups, and to express everything artistically.</p>



<p>&#8220;These human capacities cannot be achieved by sitting in front of the screen. These qualities can be achieved only by doing different tasks in real life and by doing them manually,&#8221; said Pierre Laurent.</p>



<figure class="wp-block-image"><img loading="lazy" width="624" height="351" src="https://i1.wp.com/bipon.me/wp-content/uploads/2020/01/107258619_screentime3.jpg?resize=624%2C351&#038;ssl=1" alt="" class="wp-image-437" srcset="https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/01/107258619_screentime3.jpg?w=624&amp;ssl=1 624w, https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/01/107258619_screentime3.jpg?resize=300%2C169&amp;ssl=1 300w" sizes="(max-width: 624px) 100vw, 624px" data-recalc-dims="1" /><figcaption>Many parents put a screen in their hand to keep the child busy.</figcaption></figure>



<h2>Like different</h2>



<p>When one group of Silicon Valley parents think so, there is another team guardian who believes that this technology is an essential tool of education in the twenty-first century.</p>



<p>They think this technology is essential for doing well in the classroom as well as for success in outdoor life.</p>



<p>Marv Lapus, a senior director of Common Sense Media, a family that advises families on digital entertainment and technology, has been working for nearly a decade.</p>



<p>He says, &#8220;Yes, technology can waste attention, but how do we stand against it? Because there are many opportunities for children to use technology. They also have to be prepared for the real world. , &#8220;He said.</p>



<figure class="wp-block-image"><img loading="lazy" width="624" height="351" src="https://i1.wp.com/bipon.me/wp-content/uploads/2020/01/107258621_screentime4.jpg?resize=624%2C351&#038;ssl=1" alt="" class="wp-image-438" srcset="https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/01/107258621_screentime4.jpg?w=624&amp;ssl=1 624w, https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/01/107258621_screentime4.jpg?resize=300%2C169&amp;ssl=1 300w" sizes="(max-width: 624px) 100vw, 624px" data-recalc-dims="1" /><figcaption>Many are emphasizing sports outside of children&#8217;s homes.</figcaption></figure>



<h2>Finding the balance</h2>



<p>The World Health Organization determined how much time children need to be screened.&nbsp;But recently they have reduced that time even more.</p>



<p>The company says it&#8217;s not okay to allow children under the age of two to see a screen with television alone.&nbsp;And for children two to four years old, the time limit is one hour or less.</p>



<p>But Lapus says not all screens should be considered in one row.&nbsp;He has two children.&nbsp;One is eight and the other is eight.&nbsp;He also talked about using their screens.</p>



<p>&#8220;It&#8217;s not okay to have as many screens as they used to do before. But the reality is I have to make dinner. But seeing Sesame Street is a great way to keep them entertained.&#8221;</p>



<p><a href="https://www.bbc.com/bengali/news-48611003?fbclid=IwAR2y5uY8bsUrZo7Ltvzv0wlqreymptSROdjJyHzbqZxm8YaMjz1yZBSsJ7A">Reference</a></p><p>The post <a href="https://biponnotes.iglyphic.com/why-people-in-silicon-valley-are-against-the-use-of-technology-for-children/">Why people in Silicon Valley are against the use of technology for children</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://biponnotes.iglyphic.com/why-people-in-silicon-valley-are-against-the-use-of-technology-for-children/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">433</post-id>	</item>
		<item>
		<title>নিজেকে আবিষ্কার করো</title>
		<link>https://biponnotes.iglyphic.com/discover-yourself/</link>
					<comments>https://biponnotes.iglyphic.com/discover-yourself/#respond</comments>
		
		<dc:creator><![CDATA[bipon68]]></dc:creator>
		<pubDate>Sat, 25 Jan 2020 02:41:02 +0000</pubDate>
				<category><![CDATA[Others]]></category>
		<guid isPermaLink="false">https://bipon.me/?p=430</guid>

					<description><![CDATA[<p>লিখেছেন – রউফুল আলম একজন মানুষ জীবনে কী করবে, সেটা অবশ্যই তার ব্যক্তিগত স্বাধীনতা। তাঁর নিজস্ব চিন্তা-চেতনা। কেউ যদি তবলা বাজাতে চায়, সে তবলা নিয়ে ঘুরবে। কেউ যদি চৌকিদার হতে চায়, তাহলে চৌকিদার হবে। তাতে কারো আপত্তি নেই। তবে কেউ যদি নিজেকে যাচাই না করে, নিজেকে পরখ না করে শুধু একমুখী ঝোঁকে, ঝাঁকের পালের সাথে&#8230;<a href="https://biponnotes.iglyphic.com/discover-yourself/" class="more-link">Continue reading <span class="screen-reader-text">নিজেকে আবিষ্কার করো</span></a></p>
<p>The post <a href="https://biponnotes.iglyphic.com/discover-yourself/">নিজেকে আবিষ্কার করো</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></description>
										<content:encoded><![CDATA[<p> লিখেছেন – রউফুল আলম</p>



<p>একজন মানুষ জীবনে কী করবে, সেটা অবশ্যই তার ব্যক্তিগত স্বাধীনতা। তাঁর নিজস্ব চিন্তা-চেতনা। কেউ যদি তবলা বাজাতে চায়, সে তবলা নিয়ে ঘুরবে। কেউ যদি চৌকিদার হতে চায়, তাহলে চৌকিদার হবে। তাতে কারো আপত্তি নেই। তবে কেউ যদি নিজেকে যাচাই না করে, নিজেকে পরখ না করে শুধু একমুখী ঝোঁকে, ঝাঁকের পালের সাথে দৌঁড়ায়—সেটা দুঃখজনক। ছেলে-মেয়েরা যখন নিজের ভিতরের সম্ভাবনাকে যাচাই করতে চায় না, তখন কষ্ট হয়। আমাদের দেশে যে বিসিএস-জ্বর এসেছে, সেখানে সম্ভাবনার খুন হতে আমি দেখেছি। বিসিএস দিয়ে চাকুরি করবে, তাতে দোষের কিছু নেই। দেশের সরকারী-বেসরকারী প্রতিটি কর্মকর্তা-কর্মচারীরই নিজস্ব গুরুত্ব ও অবদান আছে।</p>



<p>সমস্যা হলো, একজন তরুণ-তরুণী যখন মনে করছে তাঁর সামনে বিসিএস ছাড়া আর কিছু নেই—এটা নিজের জন্য ও সমাজের জন্য ক্ষতিকর। কেউ যখন ভাবছে, তাকে দিয়ে বিসিএস ছাড়া কিছু হবে না—সেটা আত্মঘাতী। বাইশ-তেইশ বছর বয়স, পৃথিবীর সবকিছু বুঝার বয়স নয়। সে বয়সের ছেলে-মেয়েগুলো যখন নিজেকে শুধু একটি গণ্ডির মধ্যে বেঁধে রাখে, তাতে সে নিজে বঞ্চিত হয়। সমাজকেও বঞ্চিত করে।</p>



<p>সমাজের সবাই একই কাজ করতে পারে না। একই বিষয়ে আগ্রহ নিয়ে দৌঁড়াতে পারে না। তাতে সমাজ ভেঙ্গে পড়ে। আঠারো থেকে ত্রিশ হলো গড়ার বয়স। নিজেকে শেইপ দেয়ার বয়স। চ্যালেঞ্জ নেয়ার বয়স। নিজেকে পরখ করার বয়স। নিজেকে দিয়ে কী হবে, কী হবে না—সেটা পরীক্ষা করার বয়স। যে ছেলে-মেয়েটি নিজেকে পরখ না করে, একজন বিসিএস কর্মকর্তা হয়ে রইলো—সে তো জানতেই পারলো না তাকে দিয়ে কী হতো, কী হতো না। একটা দেশের তরুণ-তরুণীদের রাষ্ট্রীয় চ্যালঞ্জ যেমন নিতে হয়, বৈশ্বিক বা গ্লোবাল চ্যালেঞ্জও নিতে হয়। তা না হলে সমাজটা পৃথিবীর মঞ্চে দাঁড়াবে কাদের নিয়ে?</p>



<p>বিশ্ববিদ্যালয়ের ফিজিক্সের একজন স্টুডেন্ট হয়তো হতে পারতো এস্ট্রনমির অধ্যাপক, কিংবা থিউরেটিক্যাল ফিজিসিস্ট। মেঘনাদ সাহা’র মতো ভাবতে ভাবতে একটি ইকোয়েশন দাঁড় করিয়ে ফেলবে। সে ইকোয়েশেনের সাথে তাঁর নাম জড়িয়ে থাকবে অনাগত কাল। কেমেস্ট্রির একজন শিক্ষার্থী হয়তো কাজ করতে পারতো প্রিন্সটন ইউনিভার্সিটির ফ্রিক রিসার্চ সেন্টারে। হয়তো উদ্ভাবন করতে পারতো নতুন কোন ম্যাটেরিয়ালস কিংবা ড্রাগ মলিকিউল। কৃষি বিশ্ববিদ্যালয়ের একজন শিক্ষার্থী হয়তো গবেষণা করতে করতে উদ্ভাবন করতে পারতো নতুন কোন ধান, সবজি কিংবা অন্যান্য শস্য। যে তরুণ ডাক্তার বিসিএস দিয়ে সার্জন হয়ে বসে আছে, সে হয়তো গবেষণা করতে পারতো স্ট্যানফোর্ড ইউনিভার্সিটির ব্যাকম্যান রিসার্চ সেন্টারে। সে কাজ করতে পারতো ফাইব্রোটিক ডিজিজ, এলজাইমার কিংবা অন্যান্য রোগ নিয়ে। কিন্তু এঁরাই যখন কায়মনোবাক্যে হাতে জপমালা নিয়ে সকাল-সন্ধ্যা বিসিএস জপতে থাকে, তখন খুবই করুণা হয়। কষ্ট বোধ করি।</p>



<p>কেউ যদি নিজেকে আবিষ্কারের চেষ্টা না করে নিজেকে সঁপে দেয়, তাহলে সে বহুজনকে বঞ্চিত করে। একটা বিশাল পৃথিবী থেকে নিজেকে বঞ্চিত করে। এটা দুঃখজনক। আমার জীবনে একটি বিসিএস পরীক্ষাই দেয়ার সুযোগ হয়েছিলো। সে পরীক্ষার লিখিত পর্ব দিয়ে আমাকে দেশ ছাড়তে হয়েছিলো। বিদেশে আসার পর ফল বের হলো। লিখিত পরীক্ষাতেও উত্তীর্ণ হয়েছিলাম। সে ফলাফল পেয়ে খুব দ্বিধান্বিত ছিলাম। পরে বুঝলাম, এই যে পৃথিবীকে দেখার এবং জানার সৌভাগ্য হয়েছে—নিজেকে যাচাই না করলে কোনদিনই উন্মোচন করতে পারতাম না। নিজেকে আবিষ্কার করেছিলাম নতুন পৃথিবীতে। যেখানে নিত্যদিনের সাথীরা হলেন, কালের সবচেয়ে আলোকিত মানুষ। এই গ্লোবাল প্রতিযোগিতায় নিজেকে জড়িয়ে বুঝেছি, এখানে যেমন চ্যালেঞ্জ আছে তেমনি আনন্দ এবং অর্জনের ব্যাপ্তিটাও অনেক বড়ো।</p>



<p>সঁপে দেয়ার আগে, নিজেকে পরীক্ষা করো, প্লিজ! তুমি যে যেতে পারো বহুদূর, সেটা তোমাকেই পরখ করতে হবে। ঝাঁকের সাথে দৌঁড়ে নিজের বৃহত্তর সম্ভাবনাটুকু খুন করো না।<br>&#8230;&#8230;&#8230;.<br>ফিলাডেলফিয়া, যুক্তরাষ্ট্র</p>



<p><a href="https://www.facebook.com/rauful15/posts/10212338777197717">Source</a></p><p>The post <a href="https://biponnotes.iglyphic.com/discover-yourself/">নিজেকে আবিষ্কার করো</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://biponnotes.iglyphic.com/discover-yourself/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">430</post-id>	</item>
		<item>
		<title>Callback Function in JavaScript</title>
		<link>https://biponnotes.iglyphic.com/callback-function/</link>
					<comments>https://biponnotes.iglyphic.com/callback-function/#comments</comments>
		
		<dc:creator><![CDATA[bipon68]]></dc:creator>
		<pubDate>Fri, 24 Jan 2020 17:01:07 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[callback]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[synchronous]]></category>
		<guid isPermaLink="false">https://bipon.me/?p=419</guid>

					<description><![CDATA[<p>Callback function means that it is a function that executes after another function is executed. And that&#8217;s why it&#8217;s called callback function. #synchronous&#160;function #Asynchronous&#160;function #Infinity Loop Now what&#8217;s the callback job? We know about the asynchronous behavior of JavaScript. If JavaScript takes time to do a task, do not wait and move on to the&#8230;<a href="https://biponnotes.iglyphic.com/callback-function/" class="more-link">Continue reading <span class="screen-reader-text">Callback Function in JavaScript</span></a></p>
<p>The post <a href="https://biponnotes.iglyphic.com/callback-function/">Callback Function in JavaScript</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Callback function means that it is a function that executes after another function is executed. And that&#8217;s why it&#8217;s called callback function.</p>



<p> #synchronous&nbsp;function </p>



<pre class="wp-block-code"><code>    function synch(func){
      func("synchronous")
    }
    synch(alert)
    alert('Test')</code></pre>



<figure class="wp-block-image"><img loading="lazy" width="472" height="331" src="https://i2.wp.com/bipon.me/wp-content/uploads/2020/01/1-4.png?resize=472%2C331&#038;ssl=1" alt="" class="wp-image-420" srcset="https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/01/1-4.png?w=472&amp;ssl=1 472w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/01/1-4.png?resize=300%2C210&amp;ssl=1 300w" sizes="(max-width: 472px) 100vw, 472px" data-recalc-dims="1" /></figure>



<p> #Asynchronous&nbsp;function </p>



<pre class="wp-block-code"><code>setTimeout(alert,1000, "Asynchronous");
    alert('Test')</code></pre>



<p>#<strong>Infinity Loop</strong></p>



<pre class="wp-block-code"><code>function _1(){
      console.log('First function')
      _2();
    }
    function _2(){
      console.log('Second function');
      _1();
    }
    _1();</code></pre>



<p>Now what&#8217;s the <code>callback </code>job? We know about the <code>asynchronous </code>behavior of JavaScript. If JavaScript takes time to do a task, do not wait and move on to the next code:</p>



<pre class="wp-block-code"><code>    const getCustomFunction = () => {
      setTimeout(function(){
        console.log('A function that takes some time');
      }, 3000)
    }
    const printAnotherFunction = () => {
      console.log('Another Function');
    }
    getCustomFunction();
    printAnotherFunction();</code></pre>



<p>Running this code will show the next as before, and the next one for <code>JavaScript asynchronous behavior</code>:</p>



<figure class="wp-block-image"><img loading="lazy" width="543" height="241" src="https://i2.wp.com/bipon.me/wp-content/uploads/2020/01/3-2.png?resize=543%2C241&#038;ssl=1" alt="" class="wp-image-427" srcset="https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/01/3-2.png?w=543&amp;ssl=1 543w, https://i1.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/01/3-2.png?resize=300%2C133&amp;ssl=1 300w" sizes="(max-width: 543px) 100vw, 543px" data-recalc-dims="1" /></figure>



<p>From the definition of a <code>callback </code>function, we know that it is executed after another function is executed. And so we can use this technique here by writing two functions individually, but we can do it by the <code>callback </code>at the exact time the function is called:</p>



<pre class="wp-block-code"><code>    const getCustomFunction = (callback) => {
      setTimeout(function(){
        console.log('A function that takes some time');
        callback();
      }, 3000)
    }
    const printAnotherFunction = () => {
      console.log('Another Function');
    }
    getCustomFunction(printAnotherFunction);</code></pre>



<p>We passed our function here as <code>an argument inside</code> our Main function call. And then I called it exactly where I needed it. This  <code>printAnotherFunction()</code> function here is the callback function. It will give us results like mind. Means one after another. It will wait exactly 3 seconds then give the result. But serial maintenance does. Promise first, the data will come from it, then run the callback function:</p>



<figure class="wp-block-image"><img loading="lazy" width="670" height="211" src="https://i0.wp.com/bipon.me/wp-content/uploads/2020/01/4-2.png?resize=670%2C211&#038;ssl=1" alt="" class="wp-image-428" srcset="https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/01/4-2.png?w=670&amp;ssl=1 670w, https://i2.wp.com/biponnotes.iglyphic.com/wp-content/uploads/2020/01/4-2.png?resize=300%2C94&amp;ssl=1 300w" sizes="(max-width: 670px) 100vw, 670px" data-recalc-dims="1" /></figure><p>The post <a href="https://biponnotes.iglyphic.com/callback-function/">Callback Function in JavaScript</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://biponnotes.iglyphic.com/callback-function/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">419</post-id>	</item>
		<item>
		<title>CSS3 Media Queries</title>
		<link>https://biponnotes.iglyphic.com/css3-media-queries/</link>
					<comments>https://biponnotes.iglyphic.com/css3-media-queries/#respond</comments>
		
		<dc:creator><![CDATA[bipon68]]></dc:creator>
		<pubDate>Tue, 21 Jan 2020 09:03:34 +0000</pubDate>
				<category><![CDATA[সিএসএস]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Media]]></category>
		<category><![CDATA[Queries]]></category>
		<guid isPermaLink="false">https://bipon.me/?p=415</guid>

					<description><![CDATA[<p>Head Reference</p>
<p>The post <a href="https://biponnotes.iglyphic.com/css3-media-queries/">CSS3 Media Queries</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></description>
										<content:encoded><![CDATA[<pre class="wp-block-code"><code>/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}

/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
/* Styles */
}

/* Smartphones (portrait) ----------- */
@media only screen
and (max-width : 320px) {
/* Styles */
}

/* iPads (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) {
/* Styles */
}

/* iPads (landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape) {
/* Styles */
}

/* iPads (portrait) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) {
/* Styles */
}

/* Desktops and laptops ----------- */
@media only screen
and (min-width : 1224px) {
/* Styles */
}

/* Large screens ----------- */
@media only screen
and (min-width : 1824px) {
/* Styles */
}

/* iPhone 4 ----------- */
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
/* Styles */
}</code></pre>



<p>Head</p>



<pre class="wp-block-code"><code>&lt;head>

&lt;link rel="stylesheet" href="smartphone.css"
media="only screen and (min-device-width : 320px)
and (max-device-width : 480px)">

&lt;link rel="stylesheet" href="smartphone-landscape.css"
media="only screen and (min-width : 321px)">

&lt;link rel="stylesheet" href="smartphone-portrait.css"
media="only screen and (max-width : 320px)">

&lt;link rel="stylesheet" href="ipad.css"
media="only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)">

&lt;link rel="stylesheet" href="ipad-landscape.css"
media="only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape)">

&lt;link rel="stylesheet" href="ipad-portrait.css"
media="only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait)">

&lt;link rel="stylesheet" href="widescreen.css"
media="only screen and (min-width : 1824px)">

&lt;link rel="stylesheet" href="iphone4.css"
media="only screen
and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5)">

&lt;/head></code></pre>



<p><a href="https://gist.github.com/bipon68/79c2bb7ee0a5542f0fca3cac76d928ff">Reference</a></p><p>The post <a href="https://biponnotes.iglyphic.com/css3-media-queries/">CSS3 Media Queries</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://biponnotes.iglyphic.com/css3-media-queries/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">415</post-id>	</item>
	</channel>
</rss>
