<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Iftekharul Islam</title>
    <description>The latest articles on DEV Community by Iftekharul Islam (@iftekharalvee).</description>
    <link>https://dev.to/iftekharalvee</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F602240%2Fcdd48a5a-52e1-4668-8fc6-142827b9b472.jpeg</url>
      <title>DEV Community: Iftekharul Islam</title>
      <link>https://dev.to/iftekharalvee</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/iftekharalvee"/>
    <language>en</language>
    <item>
      <title>Truthy and Falsy values in Javascript </title>
      <dc:creator>Iftekharul Islam</dc:creator>
      <pubDate>Sat, 08 May 2021 12:19:39 +0000</pubDate>
      <link>https://dev.to/iftekharalvee/truthy-and-falsy-values-in-javascript-bmh</link>
      <guid>https://dev.to/iftekharalvee/truthy-and-falsy-values-in-javascript-bmh</guid>
      <description>&lt;p&gt;We are going to discuss an important javascript topic for interviews that can help you also understand a basic of Javascript. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Truthy and Falsy values&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In javascript when you declare a variable with some value except 0 Javascript should consider this as a true value and if the value is 0 Javascript will consider this as false.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const score = 20;

if(score){
console.log("It is true")
}
else{
console.log("It is false")
}
// Output : It is true
const duck = 0;

if(duck){
console.log("It is true")
}
else{
console.log("It is false")
}
// Output : It is false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So Javascript will consider 0 as false and other values as true.&lt;/p&gt;

&lt;p&gt;If you declare a string with its length &amp;lt; 0 then javascript will consider this as true, otherwise if you declare an empty string it will be considered as false.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const name1 = "Alvee";

if(name1){
console.log("It is true")
}
else{
console.log("It is false")
}
// Output : It is true
const name2 = "";

if(name2){
console.log("It is true")
}
else{
console.log("It is false")
}
// Output : It is false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you don't define a variable Javascript will consider it as false.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let name;

if(name){
console.log("It is true")
}
else{
console.log("It is false")
}
// Output : It is false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you define a variable as Null Javascript will consider it as false.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let name = null;

if(name){
console.log("It is true")
}
else{
console.log("It is false")
}
// Output : It is false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you also define a variable with NaN Javascript will consider it as false.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let value = NaN ;

if(value){
console.log("It is true")
}
else{
console.log("It is false")
}
// Output : It is false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We saw that the empty string was false, but if you declare an empty array or object it will be considered as true value.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const array = [];

if(array){
console.log("It is true")
}
else{
console.log("It is false")
}
// Output : It is true

const object = {};

if(object){
console.log("It is true")
}
else{
console.log("It is false")
}
// Output : It is true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Besides all these, if you declare a value as false, there what can Javascript do!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const value = false;

if(value){
console.log("It is true")
}
else{
console.log("It is false")
}
// Output : It is false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So we can say that if you declare a variable with the value of undefined, null, NaN, 0, "" the output will be false.&lt;/p&gt;

&lt;p&gt;The following values are always falsy:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;false&lt;/li&gt;
&lt;li&gt;0 (zero)&lt;/li&gt;
&lt;li&gt;'' or "" (empty string)&lt;/li&gt;
&lt;li&gt;null&lt;/li&gt;
&lt;li&gt;undefined&lt;/li&gt;
&lt;li&gt;NaN&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Everything else is truthy. That includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;'0' (a string containing a single zero)&lt;/li&gt;
&lt;li&gt;'false' (a string containing the text “false”)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.toan%20empty%20array"&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;{} (an empty object)&lt;/li&gt;
&lt;li&gt;function(){} (an “empty” function)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;you can also check out this &lt;a href="https://www.sitepoint.com/javascript-truthy-falsy/"&gt;article&lt;/a&gt; I found informative &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Let's talk with React! </title>
      <dc:creator>Iftekharul Islam</dc:creator>
      <pubDate>Fri, 07 May 2021 14:20:52 +0000</pubDate>
      <link>https://dev.to/iftekharalvee/let-s-talk-with-react-2lfk</link>
      <guid>https://dev.to/iftekharalvee/let-s-talk-with-react-2lfk</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hmm! React&lt;/strong&gt;&lt;br&gt;
React is a JavaScript library for building user interfaces. Don't quarrel about it library or framework. &lt;br&gt;
It is not exactly a “framework”. A framework is a complete solution but react is not a complete solution and you will often need to use more libraries with React to form any solution. &lt;/p&gt;

&lt;p&gt;Both frameworks and libraries are code written by someone else that is used to help solve everyone's common problems.&lt;br&gt;
React is also makes our life easier to write a single page application.&lt;/p&gt;

&lt;p&gt;React introduced the smart idea of a virtual DOM that can be used to reconcile the actual DOM. &lt;br&gt;
it introduced the smart idea of a virtual DOM that can be used to reconcile the actual DOM.&lt;/p&gt;

&lt;p&gt;React has been designed from the start for gradual adoption, and you can use as little or as much React as you need. Whether you want to get a taste of React, add some interactivity to a simple HTML page, or start a complex React-powered app, the links in this section will help you get started.&lt;/p&gt;

&lt;p&gt;you can check the &lt;a href="https://www.taniarascia.com/getting-started-with-react/"&gt;overview of react&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Initialization&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Create React App is a comfortable environment for learning React and is the best way to start building a new single-page application in React.&lt;/p&gt;

&lt;p&gt;The initialization of React is so easy but you’ll need to have Node &amp;gt;= 10.16 and npm &amp;gt;= 5.6 on your machine. To create a project, run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx create-react-app my-app
cd my-app
npm start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you’re interested in playing around with React, you can use an online code playground. Try a Hello World template on CodePen, CodeSandbox, or Stackblitz.&lt;/p&gt;

&lt;p&gt;Here are what I consider to be &lt;strong&gt;React prerequisites&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Basic knowledge of HTML &amp;amp; CSS.&lt;br&gt;
Familiar with JavaScript and programming.&lt;br&gt;
Basic understanding of the DOM.&lt;br&gt;
Basic knowledge of ES6 syntax and features.&lt;br&gt;
Node.js and npm installed globally.&lt;/p&gt;

&lt;p&gt;That's just the beginning you have to go a lot of path with React&lt;/p&gt;

&lt;p&gt;I'm giving you a simple example of react code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';

ReactDOM.render(
  &amp;lt;React.StrictMode&amp;gt;
    &amp;lt;App /&amp;gt;
  &amp;lt;/React.StrictMode&amp;gt;,
  document.getElementById('root')
);

reportWebVitals();

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Components&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import React from 'react'

const App = () =&amp;gt; {

    return (
      &amp;lt;div&amp;gt;
        &amp;lt;h1&amp;gt;Hello, React!&amp;lt;/h1&amp;gt;
      &amp;lt;/div&amp;gt;
    )
}


export default App;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;you can get the &lt;a href="https://reactjs.org/"&gt;documentation&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Got Stuck?&lt;/strong&gt;&lt;br&gt;
Ask a question, &lt;a href="https://stackoverflow.com/questions/tagged/reactjs"&gt;Existing question&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You want Community?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There are many online forums for discussion about best practices and application architecture as well as the future of React.&lt;br&gt;
If you have an answerable code-level question, Stack Overflow is usually a better fit.&lt;/p&gt;

&lt;p&gt;Each community consists of many thousands of React users.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/t/react"&gt;DEV’s React community&lt;/a&gt;&lt;br&gt;
&lt;a href="https://hashnode.com/n/reactjs"&gt;Hashnode’s React community&lt;/a&gt;&lt;br&gt;
&lt;a href="https://hashnode.com/n/reactjs"&gt;Reactiflux online chat&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.reddit.com/r/reactjs/"&gt;Reddit’s React community&lt;/a&gt;&lt;br&gt;
&lt;a href="https://spectrum.chat/react"&gt;Spectrum’s React community&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Block Bindings in Javascript(Es6)</title>
      <dc:creator>Iftekharul Islam</dc:creator>
      <pubDate>Thu, 06 May 2021 15:03:38 +0000</pubDate>
      <link>https://dev.to/iftekharalvee/block-bindings-in-javascript-es6-3ein</link>
      <guid>https://dev.to/iftekharalvee/block-bindings-in-javascript-es6-3ein</guid>
      <description>&lt;p&gt;&lt;strong&gt;Block Bindings&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Declaration of variable in javascript is different than other languages like mostly c-based languages. You have to declare a variable to use it first, but it doesn't need to declare it before in the case of javascript. ECMAScript 6 makes it easier to control the use of the variable. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Block&lt;/strong&gt;&lt;br&gt;
You have understood the theory of block in javascript. &lt;br&gt;
 Blocks are created when you declare a function, inside the function there created a block. Or { } inside this parenthesis there also created a block. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;var Declaration&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When you use var in javascript, it declares this variable globally. And you can access this variable outside of the block also.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const function = (condition) =&amp;gt; {

    if (condition) {
        var value = "true";

        // other code

        return value;
    } else {

        // value exists here with a value of undefined

        return null;
    }

        // value exists here with a value of undefined
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It means the variable value still can be accessible from else part or the outside of the block. &lt;br&gt;
Oh, javascript doesn't need to declare the value before using it. But in case if you declare the value before declaring the function the case is similar.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using let instead of var&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The use of let is exactly the same use as var. The work is similar but the scope of let is limited to the block you use, you can't access the variable which is declare using let from outside of the block.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const function = (condition) =&amp;gt; {

    if (condition) {
        let value = "true";

        // other code

        return value;
    } else {

        // value doesn't exist here

        return null;
    }

        // value doesn't exist here
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Re declaration problem&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you declare a variable using var and let in the same block with the same name, it will cause an error, but you can use a variable with a similar name in a different block with let.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var value = 45;

// Syntax error
let value = 70;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On the other hand, it will not cause any error though it's declared using a similar name but in a different block,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var value = 30;

// Does not cause an error
if (condition) {

    let value = 40;

    // more code
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;const declaration&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We can also declare variables in ECMAScript 6 with the const declaration syntax. Variables declared using const are considered constants, so their values cannot be changed once set. For this reason, every const variable must be given a value on the declaration, as shown in this example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Valid use of constant
const use = 30;

// Syntax error: missing value
const reuse;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;const variables are also bonded in blocks like let. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Practise of block-bindings&lt;/strong&gt;&lt;br&gt;
Before ECMAScript 6 comes with the concept of block bindings and the use of var, let, const it was really a problem for the developer to deal with a global variable like var. But when this update comes, all the developers accepted it cordially and it gained popularity. Developers use const by default and only use let when you know a variable's value needs to change.    &lt;/p&gt;

&lt;p&gt;The current best practice for block bindings is developers will use const by default and only use let when they know a variable's value needs to change. This ensures a basic level of immutability in code that can help prevent certain types of errors.&lt;/p&gt;

&lt;p&gt;you can read more from here : &lt;a href="https://pengxiulin.gitbooks.io/es6/content/01-Block-Bindings.html"&gt;click me&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>es6</category>
      <category>blockbindings</category>
    </item>
    <item>
      <title>Some basic Javascript string prototype you should know</title>
      <dc:creator>Iftekharul Islam</dc:creator>
      <pubDate>Wed, 05 May 2021 15:23:46 +0000</pubDate>
      <link>https://dev.to/iftekharalvee/some-basic-javascript-string-prototype-you-should-know-5faf</link>
      <guid>https://dev.to/iftekharalvee/some-basic-javascript-string-prototype-you-should-know-5faf</guid>
      <description>&lt;p&gt;&lt;strong&gt;Let's start&lt;/strong&gt;&lt;br&gt;
We all know that a string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. Strings in JavaScript are sequences of Unicode characters. We are not going to discuss Unicode characters today. &lt;/p&gt;

&lt;p&gt;In javascript, we write strings inside of single or double-quotes.&lt;br&gt;
like,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let str1 = "hello" 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;here, hello inside double quotes are string.&lt;/p&gt;

&lt;p&gt;Today we are going to discuss some javascript important string prototypes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;charAt()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you want to know a character's string by using its location you have to use charAt() prototype. &lt;br&gt;
you have to put the index number as a parameter then boom! &lt;br&gt;
Like,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const str1 = "A good boy"
console.log(str1.charAt(4)) 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output :  "o"&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;concat()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The concat() prototype concatenates the string arguments to the calling string and returns a new string. In this new string, you'll see the separate strings are in together. &lt;/p&gt;

&lt;p&gt;Like,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const str1 = 'Bill';
const str2 = 'Gates';

console.log(str1.concat(' ', str2));
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;output: "Bill Gates"&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(str2.concat(', ', str1));
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;output: "Gates, Bill" &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;includes()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Sometimes we want to know whether a word is in the string or not.&lt;br&gt;
So includes() method performs a case-sensitive search. It determines whether one string may be found within another string, returning true or false as appropriate.&lt;/p&gt;

&lt;p&gt;Example,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const order = "Order of Finix"
const word = "of"
console.log(order.includes(word))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output: true&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;indexof()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you want to know the location of a specific word or letter or value inside a string you should use indexOf(). &lt;/p&gt;

&lt;p&gt;indexOf() helps to return the index within the calling String object of the specified value, starting the search at fromIndex. &lt;br&gt;
It returns -1 if the value is absent or not found.&lt;/p&gt;

&lt;p&gt;Example,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const order = "Order of Finix"
const word = "of"
console.log(order.indexOf(word))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output: 6&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;endsWith()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;By using endsWith() prototype we can determine whether a string ends with the characters of an expected string or not. It returns true or false as appropriate.&lt;/p&gt;

&lt;p&gt;Example,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const order = "Order of Finix"
console.log(order.endsWith("Finix"))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output: true&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;lastIndexOf()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This lastIndexOf() method returns the index within the String object of the specified value which occurred last, searching backward from fromIndex.&lt;br&gt;
It returns -1 if the value is not found.&lt;/p&gt;

&lt;p&gt;Example,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const order = "Order of Finix"
const ind = 'of'
console.log(order.lastIndexOf(ind))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output: 6&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;replace()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you want to replace a specific word or letter or RegExp with a string you have to use replace() prototype. This prototype takes two parameters, the first parameter is which you want to replace and the second parameter is by which word or letter you want to replace. &lt;/p&gt;

&lt;p&gt;Example,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const star = "twinkle twinkle little star"
console.log(star.replace('little','big'))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output: "twinkle twinkle big star"&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;slice()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The slice() method extracts a section of a string and returns it as a new string. It doesn't modify the original string.&lt;/p&gt;

&lt;p&gt;Example,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const star = "twinkle twinkle little star"
console.log(star.slice(7))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output: " twinkle little star"&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(star.slice(7, 14))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output: " twinkl"&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(star.slice(-14))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output: "le little star"&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;split()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you want to divide a String into an ordered list of substrings, put these substrings into an array, and return the array. The division is done by searching for a pattern; where the pattern is provided as the first parameter in the method's call. &lt;/p&gt;

&lt;p&gt;Example,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const star = "twinkle twinkle little star"
console.log(star.split(' '))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output: Array ["twinkle", "twinkle", "little", "star"]&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;toLowerCase()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The toLowerCase() prototype returns the calling string value converted to lower case. &lt;/p&gt;

&lt;p&gt;Example,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const country = "BANGLADESH"
console.log(country .toLowerCase())
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output: "bangladesh"&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;toUpperCase()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The toUpperCase() prototype returns the calling string value converted to the Upper case. &lt;/p&gt;

&lt;p&gt;Example,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const country = "bangladesh"
console.log(country .toUpperCase())
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output: "BANGLADESH"&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
