<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Md Touhedul Haque on Medium]]></title>
        <description><![CDATA[Stories by Md Touhedul Haque on Medium]]></description>
        <link>https://medium.com/@haque-touhedul?source=rss-d51fdc32f913------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*bthnrAN40ewCcv4LFo-qXQ.jpeg</url>
            <title>Stories by Md Touhedul Haque on Medium</title>
            <link>https://medium.com/@haque-touhedul?source=rss-d51fdc32f913------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 11:30:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@haque-touhedul/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Redux (For clearing Concept)]]></title>
            <link>https://medium.com/all-about-js-reactjs-react-native/redux-for-clearing-concept-fcdbf7177ed0?source=rss-d51fdc32f913------2</link>
            <guid isPermaLink="false">https://medium.com/p/fcdbf7177ed0</guid>
            <category><![CDATA[redux]]></category>
            <dc:creator><![CDATA[Md Touhedul Haque]]></dc:creator>
            <pubDate>Sat, 20 Feb 2021 13:16:49 GMT</pubDate>
            <atom:updated>2021-02-20T13:16:49.292Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W5UbU87tSPd7DCEA.png" /><figcaption>redux-flow</figcaption></figure><p>N.B. **npm init then npm install redux to set-up the environment**</p><p><strong>const redux = require(‘redux’);</strong></p><p>// console.log(redux);</p><p>//getState//</p><p><strong>const initState</strong> = {</p><p>num: 0</p><p>}</p><p>//reducer//</p><p><strong>const rootReducer = (state = initState, action) =&gt; {</strong></p><p><strong>if (action.type === ‘INC_NUM’) {</strong></p><p><strong>return {</strong></p><p><strong>…state,</strong></p><p><strong>num: state.num + 1</strong></p><p><strong>}</strong></p><p><strong>}</strong></p><p><strong>if (action.type === ‘ADD_NUM’) {</strong></p><p><strong>return {</strong></p><p><strong>…state,</strong></p><p><strong>num: state.num + action.value</strong></p><p><strong>}</strong></p><p><strong>}</strong></p><p><strong>return state;</strong></p><p><strong>}</strong></p><p>//store//</p><p><strong>const store = redux.createStore(rootReducer);</strong></p><p><strong>console.log(store.getState())</strong></p><p>// subscribe//</p><p><strong>store.subscribe(() =&gt; {</strong></p><p><strong>console.log(“Came from Subscribe: “, store.getState())</strong></p><p>})</p><p>// dispatching action//</p><p><strong>store.dispatch({</strong></p><p><strong>type: ‘INC_NUM’</strong></p><p><strong>});</strong></p><p><strong>store.dispatch({</strong></p><p><strong>type: ‘ADD_NUM’,</strong></p><p><strong>value: 34</strong></p><p><strong>})</strong></p><p>instruction: above code run in index.js (for ex.) and run by command **node index**</p><h3>Written By &amp; Best Regards</h3><ul><li>Md Touhedul Haque (Frontend || MERN stack developer, Zürich, Switzerland). <a href="https://haque-portfolio.netlify.app/"><strong>Click here to check my portfolio</strong></a></li><li>all articles are made by my learning, search, use, experiences.</li><li>If you find anything to add or edit please feel free to write in a comment.</li><li><a href="https://haque-touhedul.medium.com/"><strong>Click here for more articles by me.</strong></a></li><li>“<em>once a coder, always a learner</em>……..<a href="https://github.com/touhedulhaque"><strong>(Haque)</strong></a>.”</li><li>source: from Bohubrihi fsjp-002 batch course and google.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcdbf7177ed0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/all-about-js-reactjs-react-native/redux-for-clearing-concept-fcdbf7177ed0">Redux (For clearing Concept)</a> was originally published in <a href="https://medium.com/all-about-js-reactjs-react-native">All about JS || ReactJs || React-Native</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Problem Solving Practice by JavaScript]]></title>
            <link>https://medium.com/all-about-js-reactjs-react-native/problem-solving-practice-by-javascript-91845b3ad281?source=rss-d51fdc32f913------2</link>
            <guid isPermaLink="false">https://medium.com/p/91845b3ad281</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[problem-solving]]></category>
            <category><![CDATA[javascript-development]]></category>
            <category><![CDATA[js]]></category>
            <dc:creator><![CDATA[Md Touhedul Haque]]></dc:creator>
            <pubDate>Fri, 06 Nov 2020 09:07:26 GMT</pubDate>
            <atom:updated>2021-01-01T11:10:24.443Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*-SsnYVmsyXbtwlo18CuHsA.png" /><figcaption>problem-solving by JS</figcaption></figure><ol><li><strong>True VS False? (Truthy and Falsey values):</strong></li></ol><p>Answer:</p><p><strong><em>Automatic False Situations:</em></strong></p><p># when value is 0. # when value is “” (without underscore). # when value is undefined. # when value is null. # when value is NaN.</p><p><strong><em>Automatic True Situations:</em></strong></p><p># when value is ‘0’ # when value is “ ” (underscore inside) #when declare empty object or array {} [].</p><p>for example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/228/1*gEzmH1CWxK6N0R7zobiFuQ.png" /><figcaption>vs-code</figcaption></figure><blockquote><strong>Output is // false</strong></blockquote><p><strong>2. Null Vs Undefined?</strong></p><p>Answer: <strong>#Undefined#</strong> There are several ways (by mistake), we will get “undefine” for example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/185/1*bIFU1CbzKnPF23yxL1mYqw.png" /><figcaption>vs-code</figcaption></figure><ul><li>*Here age has no parameter.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/268/1*_jXphX7Bsj-4EQB69f_7iw.png" /><figcaption>vs-code</figcaption></figure><ul><li>**Here we will get result and also get undefine cause above <strong><em>function has no return.</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/257/1*jPMCN4IhCJ4A77HECqGDfA.png" /><figcaption>vs-code</figcaption></figure><ul><li>**Here num1 value is 13 but num2 has no value. for this we will get output 13 and undefine.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*uR_6HYi5pN25dwUxoRXFtw.png" /><figcaption>vs-code</figcaption></figure><ul><li>** Here johnTrendy has a name &amp; tel. but when we want to know his age the value is undefined because age is not defined before.</li><li>“undefine” is negative that’s why it is false.</li></ul><p><strong>##Null##</strong></p><ul><li>*null means empty.</li><li>*developers define some value is null.</li><li>null has to set, normally it’s not showing as an output.</li></ul><p><strong>3. (===)triple equal VS (==)?</strong></p><p>Answer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*GbevJHkwdPruy3p6GHp40g.png" /><figcaption>vs-code</figcaption></figure><p>## double equal (==) never check string type, on the other hand triple equal (===) always check value and string type. according to standard better to use triple equal (===).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*AAdeDOzwnI2q8gclXJA8og.png" /><figcaption>vs-code</figcaption></figure><p>## another example of double equal (==)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/261/1*WuGraMEGCPtvCbneX1GVQQ.png" /><figcaption>vs-code</figcaption></figure><p><strong>4. Make a function of feet to mile?</strong></p><p>answer:</p><p>Information: //feetToMile // info: 1 mile = 5280 feet</p><p><strong><em>function feetToMile(feet) {</em></strong></p><p><strong><em>var mile = feet / 5280;</em></strong></p><p><strong><em>return mile;</em></strong></p><p><strong><em>}</em></strong></p><p>var result = feetToMile(90000);</p><p>result = result.toFixed(2)</p><p>//**extra part for bonus marks .toFixed */console.log(“Mile is:”, result)</p><p><strong>5. Make a function of the wood calculator (How many total blocks of wood we need to make 3 things)?</strong></p><p>Answer:</p><p><strong>Information:</strong></p><p>//woodCalculator info: chair = 1 ci, table = 3 ci; bed = 5 ci (ci = cubic inches)</p><p>Solution:</p><p><strong><em>function woodCalculator(chair, table, bed) {</em></strong></p><p><strong><em>var chairWoodCount = chair * 1;</em></strong></p><p><strong><em>var tableWoodCount = table * 3;</em></strong></p><p><strong><em>var bedWoodCount = bed * 5;</em></strong></p><p><strong><em>var totalWood = chairWoodCount + tableWoodCount + bedWoodCount; return totalWood;</em></strong></p><p><strong><em>}</em></strong></p><p>var totalWoodResult = woodCalculator(11,2,3);</p><p>console.log(“Total Wood Need in Cubic Inches:”, totalWoodResult);</p><p><strong>6. Find the max number from two values?</strong></p><p>Answer:</p><p><strong><em>let a=950;</em></strong></p><p><strong><em>let b=350;</em></strong></p><p><strong><em>let c=550;</em></strong></p><p><strong><em>let max = Math.max(a,b,c)</em></strong></p><p><strong><em>console.log(max)</em></strong></p><p><strong>7. Find the largest number from three values by control flow (if, nested if)?</strong></p><p>solution:</p><p>let n1 = 56.98888888;</p><p>let n2 = 66.98888888;</p><p>let n3 = 99.9999999999999999999999;</p><p>n1 = parseInt(n1);</p><p>n2 = parseInt(n2);</p><p>n3 = parseInt(n3);</p><p>/////////</p><p>if (n1 &gt;= n2) {</p><p>if (n1 &gt;= n3) {</p><p>console.log(n1 + &quot; is the largest&quot;)</p><p>} else {</p><p>console.log(n3 + &quot; is the largest&quot;)</p><p>}</p><p>} else {</p><p>if (n2 &gt;= n3) {</p><p>console.log(n2 + &quot; is the largest&quot;)</p><p>} else {</p><p>console.log(n3 + &quot; is the largest&quot;)</p><p>}</p><p>}</p><p><strong>8. Basic Grading system by if-else statement?</strong></p><p>Answer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*XSJPIsPcwtKe--9UXEy5Gw.png" /><figcaption>vs-code</figcaption></figure><p><strong>8. Series of a square number and it’s sum value by loop function. for example: 3 is number and it’s series value of square number is 1+4+9 = 14?</strong></p><p>Answer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/1*mCAmYMtbvuIVuOnhnNz7OA.png" /><figcaption>vs code</figcaption></figure><p>change the input number (x value) and you will find the result. Thanks</p><h4>Written By &amp; Best Regards</h4><ul><li>Md Touhedul Haque (Frontend || MERN stack developer, Zürich, Switzerland). <a href="https://haque-portfolio.netlify.app/"><strong>Click here to check portfolio</strong></a></li><li>all articles are made by my learning, search, use, experiences.</li><li>If you find anything to add or edit please feel free to write in a comment.</li><li><a href="https://haque-touhedul.medium.com/"><strong>Click here for more articles by me.</strong></a></li><li>“<em>once a coder, always a learner</em>……..<a href="https://github.com/touhedulhaque"><strong>(Haque)</strong></a>.”</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91845b3ad281" width="1" height="1" alt=""><hr><p><a href="https://medium.com/all-about-js-reactjs-react-native/problem-solving-practice-by-javascript-91845b3ad281">Problem Solving Practice by JavaScript</a> was originally published in <a href="https://medium.com/all-about-js-reactjs-react-native">All about JS || ReactJs || React-Native</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Explore useful random term of “ReactJS”]]></title>
            <link>https://medium.com/reduce-method-in-react-via-javascript/explore-useful-random-term-of-reactjs-2570bc9aa237?source=rss-d51fdc32f913------2</link>
            <guid isPermaLink="false">https://medium.com/p/2570bc9aa237</guid>
            <category><![CDATA[react-developer]]></category>
            <category><![CDATA[jsx]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[js]]></category>
            <dc:creator><![CDATA[Md Touhedul Haque]]></dc:creator>
            <pubDate>Wed, 04 Nov 2020 15:57:24 GMT</pubDate>
            <atom:updated>2020-11-04T15:57:24.024Z</atom:updated>
            <content:encoded><![CDATA[<ol><li><strong>JS vesus JSX?</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ziaerD8ht2u01S1LGE6L2g.png" /><figcaption>JS vs JSX</figcaption></figure><p># Common cases: it’s only a need for the bundler, which might not be configured to work with JSX files, but with JS! So you are forced to use JS files instead of JSX.</p><p># React is a library for javascript, it indicates no difference for you to choose between JSX or JS. They’re completely interchangeable and use by user preferences.</p><p># In some cases developers might also choose JSX over JS, because of code highlighting, but the most of the newer editors are also viewing the react syntax correctly in JS files.</p><p># some developer mentioned <strong>.jsx </strong>is not a standard Javascript extension. It&#39;s better to name your entry point of Application based on <strong>.js</strong> and for the rest components, you can use <strong>.jsx</strong>.</p><p># There is an important reason for why some developer using <strong>.JSX</strong> for all component&#39;s file names. Actually, In a large scale project with huge bunch of code, if we set all React&#39;s component with <strong>.jsx</strong> extension, It&#39;ll be easier while navigating to different javascript files across the project(<strong>like helpers, middleware, etc.</strong>) and you know this is a React Component and not other types of the javascript file.</p><p>#JSX tags are not standard javascript, the reason some developer use .jsx extension is because with it Emmet still works in the editor — you know, that useful plugin that expands html code.</p><p># JSX isn’t standard JavaScript coding, based to <strong>Airbnb style guide</strong> ‘eslint’ could consider this pattern.</p><p># there is no such a significant difference, if you create a file with .<strong>jsx</strong> or .<strong>js</strong>.</p><p># It’s not mandatory but you can think of creating presentational components with <strong>‘.jsx’</strong> as it actually binds the props with the UI. and container components, as <strong>‘.js’</strong> files as those contains logic to get the data.</p><p># JS is standard javascript, JSX is an HTML-like syntax that you can use with React to (theoretically) make it easier and more lucrative to create React components. The only purpose is to make it easier to create React components… there’s not much else there. Without JSX, creating large, nested HTML documents using JS syntax would be a large pain in the rear; JSX simply makes that process easier.</p><p># JSX seems to make it a bit nicer — and easier to wrap your head around a few things.</p><p># taking a look at these two basic JS fiddles from their samples, one with JSX and one without JSX — the JSX one for us is instantly easier to understand and less off-putting.</p><p># JSX=JS+XML. It is language developed to create reactjs applications. SO, you can pretty much combine the HTML syntax with js to create cleaner code.</p><p># nowadays there is no difference between these two extension as bot will be passed through babel transpiler anyway for any Front end project.</p><p># It is also useful when your editor supports syntax highlighting, as JSX may require slightly different colour coding than plain JS.</p><p># JS is a JavaScript-based language. JSX is an XML-like version of JavaScript.</p><blockquote>“Source &amp; acknowledge: stack-overflow, Quora, google.”</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2570bc9aa237" width="1" height="1" alt=""><hr><p><a href="https://medium.com/reduce-method-in-react-via-javascript/explore-useful-random-term-of-reactjs-2570bc9aa237">Explore useful random term of “ReactJS”</a> was originally published in <a href="https://medium.com/reduce-method-in-react-via-javascript">Explore ReactJS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Random javaScript knowledge for recap & re-learning (for beginner to all JS lovers)]]></title>
            <link>https://medium.com/all-about-js-reactjs-react-native/random-javascript-knowledge-for-recap-re-learning-for-beginner-to-all-js-lovers-68d669890b57?source=rss-d51fdc32f913------2</link>
            <guid isPermaLink="false">https://medium.com/p/68d669890b57</guid>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[error-handling]]></category>
            <category><![CDATA[try-catch]]></category>
            <dc:creator><![CDATA[Md Touhedul Haque]]></dc:creator>
            <pubDate>Tue, 03 Nov 2020 11:40:54 GMT</pubDate>
            <atom:updated>2020-11-06T14:49:06.187Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*Gn-L9voaBY19tun3AKtGNQ.png" /><figcaption>“try…catch” syntax</figcaption></figure><p><strong>A] “try…catch” ?</strong></p><p>Answer: “Error” is a most common phenomena at the time of codes or scripts. A good JS developer is a good error handler. So <strong>try…catch </strong>allows us to “catch” errors so the script can run instead of stop/error on time, do something more meaningful &amp; reasonable to catch the error.</p><pre>try {<br><br>  // codes or scripts<br><br>} catch (err) {<br><br>  // console.log(err)<br><br>}</pre><blockquote># firstly codes in try {……} is executed.</blockquote><blockquote>#if there were no error then catch (err) is ignored, codes is being accomplished by skipping “catch”</blockquote><blockquote>#if any error happen then “try” execution stopped immediately and execution start from the beginning of “catch(err)”.</blockquote><blockquote>#then a coder easily find an error; to understand what happened.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*X_z1X_QXejkyplpIkkekZA.png" /><figcaption>source: javascript.info</figcaption></figure><p>B] <strong>CSS in JavaScript style guide:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*1EpfOdv-33HE7p76aHOEWA.png" /><figcaption>CSS-in-JS</figcaption></figure><p><strong>#Naming</strong></p><ol><li>always use camelCase for object keys like: instead of <strong>header-size</strong> use <strong>headerSize.</strong></li><li>always use an underscore( _ ) for style changing to other styles. for example: instead of “ headerSize:{height: ‘400px’} and <strong>headerSizeMiddle</strong>:{height: ‘150px’}……..use “ headerSize:{height: ‘400px’} and <strong>headerSize_middle</strong>:{height: ‘150px’}.</li><li>use selectorName_fallback for fallback styles. for example:</li></ol><p><strong>// bad</strong></p><p><strong>{ block: { display: ‘flex’, },</strong></p><p><strong>block_header: { width: ‘100%’, }, }</strong></p><p><strong>// good</strong></p><p><strong>{ block: { display: ‘flex’, },</strong></p><p><strong>block_header: { width: ‘100%’, }, }</strong></p><p>4. use small, medium and large to name media query breakpoints instead of mobile, tablet and desktop.</p><p>5. always illustrate styles after the component.</p><p>6. Leave a blank line or line spacing between connected blocks at the same indentation level. for example</p><pre>// good practice<br>{<br>  theory: {<br>    display: &#39;inline-block&#39;,<br><strong>*****line spacing*****</strong><br>    &#39;::before&#39;: {<br>      content: &quot;&#39;&#39;&quot;,<br>    },<br>  },<br><strong>*****line spacing*****</strong><br>  chapter: {<br>    border: &#39;none&#39;,<br>  },<br>}</pre><p>C] JavaScript ES6?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*voHFVEHUGXfdjT3fOYkZCQ.png" /><figcaption>ES6</figcaption></figure><p>Answer:</p><ol><li><strong>“let” &amp; “constant” keyword</strong>. The const keyword allows you to declare a constant (a JavaScript variable with a constant value). Constants are similar to “let” variables, except that the value cannot be changed. So “let” variable is not constant.</li><li><strong>Arrow Functions: </strong>We don’t need the function keyword, the return keyword, and the <strong>curly brackets</strong>. for example:</li></ol><blockquote><strong>// ES5</strong><br>var x = function(x, y) {<br> return x * y;<br>}</blockquote><blockquote><strong>// ES6</strong><br>const x = (x, y) =&gt; x * y;</blockquote><p>3. <strong>JavaScript classes: </strong>Use the keyword class to create a class.</p><p>Always add a method named constructor(): for example</p><blockquote>class Bike{<br> constructor(name, year) {<br> this.name = name;<br> this.year = year;<br> }<br>}</blockquote><h4>Written By &amp; Best Regards</h4><ul><li>Md Touhedul Haque (Frontend || MERN stack developer, Zürich, Switzerland). <a href="https://haque-portfolio.netlify.app/"><strong>Click here to check portfolio</strong></a></li><li>all articles are made by my learning, google search, use, stack-overflow &amp; experiences.</li><li>If you find anything to add or edit please feel free to write in a comment.</li><li><a href="https://haque-touhedul.medium.com/"><strong>Click here for more articles by me.</strong></a></li><li>“<em>once a coder, always a learner</em>……..<a href="https://github.com/touhedulhaque"><strong>(Haque)</strong></a>.”</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68d669890b57" width="1" height="1" alt=""><hr><p><a href="https://medium.com/all-about-js-reactjs-react-native/random-javascript-knowledge-for-recap-re-learning-for-beginner-to-all-js-lovers-68d669890b57">Random javaScript knowledge for recap &amp; re-learning (for beginner to all JS lovers)</a> was originally published in <a href="https://medium.com/all-about-js-reactjs-react-native">All about JS || ReactJs || React-Native</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Few Important term of JavaScript including SSL Certificate.]]></title>
            <link>https://medium.com/all-about-js-reactjs-react-native/few-important-term-of-javascript-including-ssl-certificate-c0c9c2b6d2cf?source=rss-d51fdc32f913------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0c9c2b6d2cf</guid>
            <category><![CDATA[ssl-certificate]]></category>
            <category><![CDATA[variables]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[js-string]]></category>
            <dc:creator><![CDATA[Md Touhedul Haque]]></dc:creator>
            <pubDate>Mon, 02 Nov 2020 15:17:21 GMT</pubDate>
            <atom:updated>2020-11-06T14:54:56.309Z</atom:updated>
            <content:encoded><![CDATA[<h3>Few Important term of JavaScript including SSL Certificate (for absolute beginner).</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*_QAyAi_EdaPhaONnTi-m_w.png" /><figcaption>javaScript learning</figcaption></figure><p>Hello fellows, today i am going to illustrate few terms of JS that we use repeatedly in our code. They are in below:</p><p><strong>a) What is JavaScript?</strong></p><p>Answer:</p><blockquote>is a full-fledged dynamic programming language (compile-time can be done at run time)</blockquote><blockquote>invented by Brendan (co-founder of the Mozilla project)</blockquote><blockquote>versatile &amp; user-friendly</blockquote><blockquote>able to create games, animated 2D &amp; 3D graphics</blockquote><blockquote>browser Application Programming Interfaces (APIs)</blockquote><p><strong>b) JS Variables type ?</strong></p><figure><img alt="JavaScript variable type" src="https://cdn-images-1.medium.com/max/684/1*CbgXyyjyDPL9PlYHE3GDsw.png" /><figcaption>JS variable type</figcaption></figure><p>Answer:</p><p>Basic 3 types of variable:</p><p>i) Number type variable.</p><p>ii) String type variable.</p><p>iii) Boolean type variable.</p><pre>i) let johnAge = 23; <strong>**johnAge is number type variable**</strong><br>console.log(johnAge)<br>//output: 23</pre><pre>ii) let name = &quot;John Robinson&quot;; <strong>**name is String type variable**</strong><br>console.log(name)<br>//output: John Robinson</pre><pre>iii) let isHot = true; <strong>**isHot/isRich is Boolean type variable** <br></strong>let isHot = true;<br>let isRich = false;<br>console.log(isHot)<br>//output: true</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QFLwxi6gm2huKh2DivqCRg.png" /><figcaption>JavaScript String method</figcaption></figure><p><strong>c) string-prototype.toUpperCase( ) / .toLowerCase( ) ?</strong></p><p>Answer:</p><pre>console.log(&#39;I am upperCase&#39;.toUpperCase()); <br>//output: &#39;I AM UPPERCASE&#39;</pre><pre>console.log(&#39;I am lowerCase&#39;.toUpperCase());<br> //output: &#39;i am lowercase&#39;</pre><p><strong>d) string-prototype.indexof( ) ?</strong></p><p>Answer:</p><pre>let promise = &quot;I promise that i will wake up early and study hard&quot;<br>console.log(promise.indexof(&#39;wake&#39;));<br>//output: 22 <br>**remember always count from 0**<br>**remember output -1 means: not available**</pre><p><strong>e) string-prototype.split( ) ?</strong></p><p>Answer:</p><pre>let promise = &quot;I wake up early&quot;<br>console.log(promise.split(&#39; &#39;));<br>//output: [&quot;I&quot;,&quot;wake&quot;,&quot;up&quot;,&quot;early&quot;] <br>**here all blank spaces**</pre><p><strong>f) parseFloat( ) ?</strong></p><p>Answer: ParseFloat convert a string into a number. for example</p><pre>let numberOne = &#39;25&#39; <br><strong>**....numberOne is string cause inverted comma &#39; &#39;.... **</strong><br>let numberOne = parseFloat(numberOne) <br><strong>**shortcut: let numberOne = +numberOne**</strong><br>console.log(numberOne)</pre><pre>//output: 25  <br></pre><p><strong>g) parseInt( ) ?</strong></p><p>Answer: <strong>ParseInt</strong> convert a number into an <strong>integer</strong>(number without fraction). for example</p><pre>let number1 = 25.67 <br>let number1 = <strong>parseInt</strong>(number1)<br>console.log(number1)</pre><pre>//output: 25  </pre><p><strong>h) .toFixed( ) ?</strong></p><p>Answer: for example</p><pre>let number1 = 0.1;<br>let number2 = 0.2; <br>let total = number1+number2<br>console.log(total)<br>//output: 0.3000000000000004</pre><pre>Now using <strong>.toFixed</strong></pre><pre>let number1 = 0.1;<br>let number2 = 0.2; <br>let total = number1+number2;<br>total = total<strong>.toFixed</strong>(2)<br>console.log(total)<br>//output: 0.30</pre><p><strong>i) Array.prototype.reduce( )?</strong></p><p>Answer:</p><p>const arrayOne = [1, 3, 5, 7];<br>const reducer = (accumulator, currentValue) =&gt; accumulator + currentValue;</p><p>// 1 + 3+ 5+ 7<br>console.log(arrayOne.reduce(reducer));<br>// expected output: 16</p><p>// 5 + 1 + 2 + 3 + 4<br>console.log(array1.reduce(reducer, 5));<br>// expected output: 15</p><p><a href="https://medium.com/reduce-method-in-react-via-javascript/easy-way-to-understand-reduce-1-aea7fddae7bf">see in details</a></p><p><strong>j) SSL Certificate?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*-RU1_r5Aqe0Z-NclTMfTQQ.png" /><figcaption>SSL</figcaption></figure><p>Answer:</p><blockquote>Encrypted link between Server and Browser</blockquote><blockquote>it illustrates that data passed privately between two (2) parties</blockquote><blockquote>Certificates are controlled and processed by a Certificate Authority (CA)</blockquote><blockquote>there are several types of encryption and validation certificate</blockquote><blockquote>1.Extended validation SSL certificate.</blockquote><blockquote>2.Organisation validated SSL certificate.</blockquote><blockquote>3.Domain Validation SSL certificate.</blockquote><blockquote>4.Wildcard SSL certificates.</blockquote><blockquote>5.Unified communications SSL certificates.</blockquote><blockquote>6.Single domain SSL certificate.</blockquote><blockquote>SSL is SEO friendly (It is a part of Google’s search ranking algorithm).</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0c9c2b6d2cf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/all-about-js-reactjs-react-native/few-important-term-of-javascript-including-ssl-certificate-c0c9c2b6d2cf">Few Important term of JavaScript including SSL Certificate.</a> was originally published in <a href="https://medium.com/all-about-js-reactjs-react-native">All about JS || ReactJs || React-Native</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Easy way to understand and use React-Js Simple Calendar.]]></title>
            <link>https://medium.com/reduce-method-in-react-via-javascript/easy-way-to-understand-and-use-react-js-simple-calendar-60316e82ab0f?source=rss-d51fdc32f913------2</link>
            <guid isPermaLink="false">https://medium.com/p/60316e82ab0f</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[react-components]]></category>
            <category><![CDATA[simple-react]]></category>
            <category><![CDATA[calendar]]></category>
            <dc:creator><![CDATA[Md Touhedul Haque]]></dc:creator>
            <pubDate>Fri, 23 Oct 2020 09:42:38 GMT</pubDate>
            <atom:updated>2020-11-06T14:50:18.057Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*-XLJVmgMKnD2regXK3hSnA.png" /><figcaption>react-calendar</figcaption></figure><p>React Calendar is very useful component. In most of the cases we need calendar for our website to enhance UI design, user friendliness and functional flexibility.</p><p>For Example: A website of doctor’s portal. In this case all patients need to check appointment availability in terms of calendar date.</p><p>In this article we are going to learn how to use a simple react-calendar. This article is useful for the beginners who are going to use calendar for the first time in their website. The following content including four(4) easy steps. Lets start :</p><h3><strong>Step-1: Install</strong></h3><p><strong>npm install react-calendar</strong></p><p>or</p><p><strong>yarn add react-calendar</strong></p><h3><strong>Step-2: Import Calendar</strong></h3><p><strong>import Calendar from ‘react-calendar’</strong></p><h3><strong>Step-3: Functionality</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*hdyRdIGMB4s_PpZdBH8u-A.png" /><figcaption>CalendarClient.js</figcaption></figure><p>for example made one component named as “CalendarClient.js” and we put the functionality inside this.</p><ol><li>const handleDateChange = date =&gt; {</li></ol><p>console.log(date);</p><p>}</p><p>B) &lt;Calendar</p><p>onChange = {handleDateChange}</p><p>value = {new Date()}</p><p>/&gt;</p><p>** follow the above image please **</p><h3><strong>Step-4: Style import</strong></h3><p>for style please import custom style from react-calendar</p><p><strong>import ‘react-calendar/dist/Calendar.css’;</strong></p><figure><img alt="always use onChange={ } and value { }" src="https://cdn-images-1.medium.com/max/433/1*DBLoTPzsT7Y5Ci9G2p2A0g.png" /><figcaption>CalendarClient.js</figcaption></figure><p><strong>Finally the result in UI:</strong></p><figure><img alt="website view or UI" src="https://cdn-images-1.medium.com/max/267/1*7G7LcVSKLw0nu-lmxJEeEQ.png" /></figure><p>Yahooo…………. it’s working.</p><p>**article source: react-calendar</p><h4>Written By &amp; Best Regards</h4><ul><li>Md Touhedul Haque (Frontend || MERN stack developer, Zürich, Switzerland). <a href="https://haque-portfolio.netlify.app/"><strong>Click here to check portfolio</strong></a></li><li>all articles are made by my learning, search, use, experiences.</li><li>If you find anything to add or edit please feel free to write in a comment.</li><li><a href="https://haque-touhedul.medium.com/"><strong>Click here for more articles by me.</strong></a></li><li>“<em>once a coder, always a learner</em>……..<a href="https://github.com/touhedulhaque"><strong>(Haque)</strong></a>.”</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60316e82ab0f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/reduce-method-in-react-via-javascript/easy-way-to-understand-and-use-react-js-simple-calendar-60316e82ab0f">Easy way to understand and use React-Js Simple Calendar.</a> was originally published in <a href="https://medium.com/reduce-method-in-react-via-javascript">Explore ReactJS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Easy way to understand “Reduce-2”]]></title>
            <link>https://medium.com/reduce-method-in-react-via-javascript/easy-way-to-understand-reduce-2-cfb4d43b75f6?source=rss-d51fdc32f913------2</link>
            <guid isPermaLink="false">https://medium.com/p/cfb4d43b75f6</guid>
            <category><![CDATA[jsx]]></category>
            <category><![CDATA[reduce]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[js]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Md Touhedul Haque]]></dc:creator>
            <pubDate>Sat, 29 Aug 2020 20:56:41 GMT</pubDate>
            <atom:updated>2020-11-06T14:52:18.553Z</atom:updated>
            <content:encoded><![CDATA[<p># objects in a Array</p><p>For example:</p><p>const staffs =[</p><p>{name: ‘R’, salary_k: 12},</p><p>{name: ‘k’, salary_k: 25},</p><p>{name: ‘P’, salary_k: 37},</p><p>{name: ‘Q’, salary_k: 29},</p><p>{name: ‘Y’, salary_k: 100}</p><p>];</p><p>Note: We use ‘return’ for make us understand.</p><p><strong>Common_Mistake:</strong></p><p>const totalSalary = staffs.reduce((sum, staff) =&gt; sum+staff, 0) <strong>Note: this is wrong because staff indicate whole single object so we make it ====&gt; staff.salary_k.</strong></p><p><strong>Real Structure</strong>:</p><h4>const totalSalary = staffs.reduce((sum, staff) =&gt; sum+staff.salary_k, 0);</h4><p><strong>Output:</strong></p><p>console.log(totalSalary)</p><p>result <strong>203</strong></p><h4>Written By &amp; Best Regards</h4><ul><li>Md Touhedul Haque (Frontend || MERN stack developer, Zürich, Switzerland). <a href="https://haque-portfolio.netlify.app/"><strong>Click here to check portfolio</strong></a></li><li>all articles are made by my learning, search engine, use, experiences.</li><li>If you find anything to add or edit please feel free to write in a comment.</li><li><a href="https://haque-touhedul.medium.com/"><strong>Click here for more articles by me.</strong></a></li><li>“<em>once a coder, always a learner</em>……..<a href="https://github.com/touhedulhaque"><strong>(Haque)</strong></a>.”</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cfb4d43b75f6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/reduce-method-in-react-via-javascript/easy-way-to-understand-reduce-2-cfb4d43b75f6">Easy way to understand “Reduce-2”</a> was originally published in <a href="https://medium.com/reduce-method-in-react-via-javascript">Explore ReactJS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Easy way to understand “Reduce -1”]]></title>
            <link>https://medium.com/reduce-method-in-react-via-javascript/easy-way-to-understand-reduce-1-aea7fddae7bf?source=rss-d51fdc32f913------2</link>
            <guid isPermaLink="false">https://medium.com/p/aea7fddae7bf</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[reduce]]></category>
            <category><![CDATA[react-jsx]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[js]]></category>
            <dc:creator><![CDATA[Md Touhedul Haque]]></dc:creator>
            <pubDate>Sat, 29 Aug 2020 20:32:55 GMT</pubDate>
            <atom:updated>2020-11-06T14:51:34.782Z</atom:updated>
            <content:encoded><![CDATA[<p>! ! Basic Structure step by step for simple array (for complete beginner):</p><p>const nums = [12,25,37,29,100];</p><p><strong>Step-1:</strong> <em>const total = nums.reduce( ).</em></p><p><strong>Step-2:</strong> <em>const total = nums.reduce(( ),0) ….{note: 2 parameters for remember}.</em></p><p><strong>Step-3:</strong> <strong><em>1st</em></strong><em> parameter: (sum,num)=&gt;sum+num, </em><strong><em>2nd </em></strong><em>parameter: 0.</em></p><h3><strong>Final-Step:</strong></h3><h4>const total = nums.reduce((sum, num) =&gt; sum+num, 0)</h4><p><strong>At a Glance:</strong></p><p>const nums = [12,25,37,29,100];</p><p>const total = nums.reduce((sum, num) =&gt; sum+num, 0);</p><p>console.log(sum, num);</p><p><strong>output:</strong></p><p><em>12 25 37 29 100 (num)</em></p><p><em>0 12 37 74 103 203 (sum)</em></p><p>console.log(total)</p><p><strong>output:</strong> 203</p><h4>Written By &amp; Best Regards</h4><ul><li>Md Touhedul Haque (Frontend || MERN stack developer, Zürich, Switzerland). <a href="https://haque-portfolio.netlify.app/"><strong>Click here to check portfolio</strong></a></li><li>all articles are made by my learning, search engine, use, experiences.</li><li>If you find anything to add or edit please feel free to write in a comment.</li><li><a href="https://haque-touhedul.medium.com/"><strong>Click here for more articles by me.</strong></a></li><li>“<em>once a coder, always a learner</em>……..<a href="https://github.com/touhedulhaque"><strong>(Haque)</strong></a>.”</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aea7fddae7bf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/reduce-method-in-react-via-javascript/easy-way-to-understand-reduce-1-aea7fddae7bf">Easy way to understand “Reduce -1”</a> was originally published in <a href="https://medium.com/reduce-method-in-react-via-javascript">Explore ReactJS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>