<?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[All about JS || ReactJs || React-Native - Medium]]></title>
        <description><![CDATA[All about javascript from zero to end. - Medium]]></description>
        <link>https://medium.com/all-about-js-reactjs-react-native?source=rss----c61b43bea0b4---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>All about JS || ReactJs || React-Native - Medium</title>
            <link>https://medium.com/all-about-js-reactjs-react-native?source=rss----c61b43bea0b4---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 10:48:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/all-about-js-reactjs-react-native" 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----c61b43bea0b4---4</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----c61b43bea0b4---4</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[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----c61b43bea0b4---4</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----c61b43bea0b4---4</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>Tue, 03 Nov 2020 01:51:06 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>
    </channel>
</rss>