<?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/"
	>

<channel>
	<title>Tips and Tricks &#8211; Learn Beginner</title>
	<atom:link href="https://learnbeginner.com/tag/tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>https://learnbeginner.com</link>
	<description>Start Your Tech Journey With Us &#124; Smart Learning, Great Beginning</description>
	<lastBuildDate>Sat, 20 Jan 2024 10:07:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>

<image>
	<url>https://learnbeginner.com/wp-content/uploads/2021/02/favicon.png</url>
	<title>Tips and Tricks &#8211; Learn Beginner</title>
	<link>https://learnbeginner.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>BrandPush: A PR Rocket Fuel or Flashy Hype?</title>
		<link>https://learnbeginner.com/brandpush-a-pr-rocket-fuel-or-flashy-hype/</link>
					<comments>https://learnbeginner.com/brandpush-a-pr-rocket-fuel-or-flashy-hype/#respond</comments>
		
		<dc:creator><![CDATA[Learn Beginner]]></dc:creator>
		<pubDate>Sat, 02 Dec 2023 09:52:00 +0000</pubDate>
				<category><![CDATA[Digital Marketing]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[SEO Tools]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<guid isPermaLink="false">https://learnbeginner.com/?p=3136</guid>

					<description><![CDATA[Whether you're a beginner just starting out or an experienced developer looking to improve your code, this blog is here to help you. In this post, we will explore some of the most effective React tips to instantly improve your code and bring your projects to the next level. So, let's get started!]]></description>
										<content:encoded><![CDATA[
<p>In the age of digital overload, cutting through the noise and building brand awareness is a constant battle. This is where BrandPush steps in, promising to launch your brand onto the front pages of major news outlets with their <strong><a href="https://www.brandpush.co/?ref=34816">&#8220;As Seen On&#8221;</a></strong> PR magic. But is BrandPush a genuine brand rocket fuel, or just flashy hype?</p>



<h2 class="wp-block-heading"><strong>The Promise: Instant Fame and Credibility</strong></h2>



<p><strong>BrandPush</strong> operates as a newswire service, crafting and distributing press releases to its network of over 200 media outlets. This includes household names like Business Insider, Fox News, AsiaOne and MSN, potentially putting your brand in front of millions of eyes. They also offer attractive add-ons like <strong><a href="https://www.brandpush.co/?ref=34816">&#8220;As Seen On&#8221;</a></strong> badges and social media promotion, further amplifying your reach.</p>



<figure class="wp-block-image size-full"><a href="https://www.brandpush.co/?ref=34816" target="_blank" rel="noreferrer noopener"><img fetchpriority="high" decoding="async" width="970" height="90" src="https://learnbeginner.com/wp-content/uploads/2024/01/970x90-brandpush-banner-style1.png" alt="" class="wp-image-3138" srcset="https://learnbeginner.com/wp-content/uploads/2024/01/970x90-brandpush-banner-style1.png 970w, https://learnbeginner.com/wp-content/uploads/2024/01/970x90-brandpush-banner-style1-300x28.png 300w, https://learnbeginner.com/wp-content/uploads/2024/01/970x90-brandpush-banner-style1-150x14.png 150w, https://learnbeginner.com/wp-content/uploads/2024/01/970x90-brandpush-banner-style1-768x71.png 768w, https://learnbeginner.com/wp-content/uploads/2024/01/970x90-brandpush-banner-style1-370x34.png 370w, https://learnbeginner.com/wp-content/uploads/2024/01/970x90-brandpush-banner-style1-270x25.png 270w, https://learnbeginner.com/wp-content/uploads/2024/01/970x90-brandpush-banner-style1-570x53.png 570w, https://learnbeginner.com/wp-content/uploads/2024/01/970x90-brandpush-banner-style1-740x69.png 740w" sizes="(max-width: 970px) 100vw, 970px" /></a></figure>



<h2 class="wp-block-heading">The Reality: A Mixed Bag of Benefits</h2>



<p>Undeniably, BrandPush offers a fast and relatively affordable way to gain media exposure. Positive reviews highlight the ease of use, quick turnaround times, and the undeniable boost in website traffic and brand visibility. However, the picture isn&#8217;t entirely rosy.</p>



<p><strong>Quality Control Concerns: </strong>Several reviewers raise concerns about the quality of the press releases. While BrandPush provides templates and editing services, some complain of generic content lacking the necessary punch to grab attention. Additionally, the sheer volume of outlets can lead to placements on less-than-reputable websites, potentially diluting your brand image.</p>



<p><strong>Targeted Reach vs. Organic Growth:</strong> While instant fame is tempting, BrandPush&#8217;s approach prioritizes immediate exposure over organic growth. Building genuine brand loyalty and long-term relationships with journalists requires a more nuanced strategy.</p>



<figure class="wp-block-image size-full"><a href="https://www.brandpush.co/?ref=34816" target="_blank" rel="noreferrer noopener"><img decoding="async" width="740" height="514" src="https://learnbeginner.com/wp-content/uploads/2024/01/BrandPush-Lifestyle-version6.png" alt="" class="wp-image-3139" srcset="https://learnbeginner.com/wp-content/uploads/2024/01/BrandPush-Lifestyle-version6.png 740w, https://learnbeginner.com/wp-content/uploads/2024/01/BrandPush-Lifestyle-version6-300x208.png 300w, https://learnbeginner.com/wp-content/uploads/2024/01/BrandPush-Lifestyle-version6-150x104.png 150w, https://learnbeginner.com/wp-content/uploads/2024/01/BrandPush-Lifestyle-version6-370x257.png 370w, https://learnbeginner.com/wp-content/uploads/2024/01/BrandPush-Lifestyle-version6-270x188.png 270w, https://learnbeginner.com/wp-content/uploads/2024/01/BrandPush-Lifestyle-version6-570x396.png 570w" sizes="(max-width: 740px) 100vw, 740px" /></a></figure>



<h2 class="wp-block-heading">The Verdict: A Tool, Not a Magic Bullet</h2>



<p><strong><a href="https://www.brandpush.co/?ref=34816">BrandPush</a></strong> is valuable for businesses seeking a quick burst of media attention. It can be particularly effective for launching new products or generating buzz around specific events. However, it&#8217;s crucial to approach it with realistic expectations. Don&#8217;t expect overnight success or a substitute for long-term PR efforts.</p>



<h2 class="wp-block-heading">Alternatives to Consider</h2>



<ul class="wp-block-list">
<li><strong>Invest in high-quality content marketing:</strong>&nbsp;Create valuable blog posts, infographics, and videos that attract organic traffic and establish your brand as a thought leader.<br></li>



<li><strong>Build relationships with journalists:</strong>&nbsp;Engage with relevant journalists on social media and pitch them well-crafted story ideas focused on your unique expertise.<br></li>



<li><strong>Leverage social media:</strong>&nbsp;Build a solid social media presence and engage with your audience directly.</li>
</ul>



<p>Ultimately, the success of your brand lies in a multi-pronged approach. BrandPush can be a useful part of the puzzle, but it&#8217;s not the only piece. Remember, building a strong brand takes time, dedication, and a commitment to creating genuine value for your audience.</p>



<p>So, is <strong><a href="https://www.brandpush.co/?ref=34816">BrandPush</a></strong> a PR rocket fuel or flashy hype? It&#8217;s neither. It&#8217;s a tool, and like any tool, its effectiveness depends on how you use it. Use it strategically, alongside other branding efforts, and you might just see your brand soar. But remember, sustainable success comes from building genuine relationships and providing lasting value, not just chasing fleeting headlines.</p>



<p>Push your brand on over <strong>200 news sites</strong> that give you traffic and brand push. <strong><a href="https://www.brandpush.co/?ref=34816">Click here to get your order done today. </a></strong></p>



<p>I hope, you found this article useful. If you have any questions or suggestions, please leave comments. Your feedback helps me to become better.</p>



<p><strong>Don’t forget to subscribe <img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f49d.png" alt="💝" class="wp-smiley" style="height: 1em; max-height: 1em;" /></strong></p>


<script>(function() {
	window.mc4wp = window.mc4wp || {
		listeners: [],
		forms: {
			on: function(evt, cb) {
				window.mc4wp.listeners.push(
					{
						event   : evt,
						callback: cb
					}
				);
			}
		}
	}
})();
</script><!-- Mailchimp for WordPress v4.10.2 - https://wordpress.org/plugins/mailchimp-for-wp/ --><form id="mc4wp-form-1" class="mc4wp-form mc4wp-form-2830 mc4wp-form-theme mc4wp-form-theme-dark" method="post" data-id="2830" data-name="Main Newsletter" ><div class="mc4wp-form-fields"><p>
	<label> 
		<input type="email" name="EMAIL" placeholder="Your email address"  style="max-width: 100%;" required />
	</label>
	<input type="submit" value="Subscribe Now" style="width: 100%;" />
</p></div><label style="display: none !important;">Leave this field empty if you&#8217;re human: <input type="text" name="_mc4wp_honeypot" value="" tabindex="-1" autocomplete="off" /></label><input type="hidden" name="_mc4wp_timestamp" value="1742447210" /><input type="hidden" name="_mc4wp_form_id" value="2830" /><input type="hidden" name="_mc4wp_form_element_id" value="mc4wp-form-1" /><div class="mc4wp-response"></div></form><!-- / Mailchimp for WordPress Plugin -->]]></content:encoded>
					
					<wfw:commentRss>https://learnbeginner.com/brandpush-a-pr-rocket-fuel-or-flashy-hype/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>4 Essential React Tips for Writing Better Code &#8211; Enhance Your Skills Today!</title>
		<link>https://learnbeginner.com/4-essential-react-tips-for-writing-better-code-enhance-your-skills-today/</link>
					<comments>https://learnbeginner.com/4-essential-react-tips-for-writing-better-code-enhance-your-skills-today/#respond</comments>
		
		<dc:creator><![CDATA[Learn Beginner]]></dc:creator>
		<pubDate>Sun, 05 Feb 2023 20:42:15 +0000</pubDate>
				<category><![CDATA[Beginners Guide]]></category>
		<category><![CDATA[Dev Tips]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[React]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Programmer]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<guid isPermaLink="false">https://learnbeginner.com/?p=3113</guid>

					<description><![CDATA[Whether you're a beginner just starting out or an experienced developer looking to improve your code, this blog is here to help you. In this post, we will explore some of the most effective React tips to instantly improve your code and bring your projects to the next level. So, let's get started!]]></description>
										<content:encoded><![CDATA[
<p>Welcome to the world of React, where creating beautiful and efficient applications has never been easier! With the right set of tips and tricks, you can take your React skills to the next level and create stunning apps that are both user-friendly and optimized for performance.</p>



<p>As you dive deeper into the world of React, it&#8217;s important to continually strive for excellence in your code. To assist you in this endeavor, I&#8217;d like to share four tips that have been invaluable in helping me write better React code. Whether you&#8217;re a seasoned developer or just starting out, I believe you&#8217;ll find something of value in these tips. So, let&#8217;s dive in and take your React skills to the next level!</p>



<h2 class="wp-block-heading">1. Return functions from handlers</h2>



<p>For those of you who have a background in functional programming, you&#8217;ll likely recognize the concept of &#8220;currying&#8221;. Essentially, it involves setting some parameters for a function ahead of time. By implementing this technique in React, you can streamline your code and make it more efficient. So, let&#8217;s delve into the world of currying and see how it can improve your React code.</p>



<p>We have an explicit problem with the boilerplate code below. That technique will help us!</p>



<pre class="wp-block-code"><code lang="jsx" class="language-jsx">export default function App() {
  const [user, setUser] = useState({
    firstName: "",
    lastName: "",
    address: ""
  });

  // First handler
  const handleFirstNameChange = (e) => {
    setUser((prev) => ({
      ...prev,
      firstName: e.target.value
    }));
  };

  // Second handler!
  const handleLastNameChange = (e) => {
    setUser((prev) => ({
      ...prev,
      lastName: e.target.value
    }));
  };

  // Third handler!!!
  const handleAddressChange = (e) => {
    setUser((prev) => ({
      ...prev,
      address: e.target.value
    }));
  };

  // What if we need one more input? Should we create another handler for it?

  return (
    &lt;>
      &lt;input value={user.fisrtName} onChange={handleFirstNameChange} />
      &lt;input value={user.lastName} onChange={handleLastNameChange} />
      &lt;input value={user.address} onChange={handleAddressChange} />
    &lt;/>
  );
}</code></pre>



<p class="has-text-color has-large-font-size" style="color:#111111"><strong>Solution</strong></p>



<pre class="wp-block-code"><code lang="jsx" class="language-jsx">export default function App() {
  const [user, setUser] = useState({
    firstName: "",
    lastName: "",
    address: ""
  });

  const handleInputChange = (field) => {
    return (e) => {
      setUser((prev) => ({
        ...prev,
        [field]: e.target.value
      }));
    };
  };

  return (
    &lt;>
      &lt;input value={user.firstName} onChange={handleInputChange("fistName")} />
      &lt;input value={user.lastName} onChange={handleInputChange("lastName")} />
      &lt;input value={user.address} onChange={handleInputChange("address")} />

      {JSON.stringify(user)}
    &lt;/>
  );
}</code></pre>



<p></p>



<h2 class="wp-block-heading">2. Separate responsibilities</h2>



<p>Making a “God” component is a common mistake that developers make. It’s called “God” because it contains many lines of code that are hard to understand and maintain. I strongly recommend dividing components into sets of independent sub-modules.</p>



<p>A typical structure for this would be:</p>



<ul class="wp-block-list">
<li><strong>UI module,&nbsp;</strong>responsible for visual representation only.</li>



<li><strong>Model module</strong>, containing only business logic. An example of this is a custom hook.</li>



<li><strong>Lib module</strong>, containing all required utilities for the component.</li>
</ul>



<p>Here’s a small demo example to help illustrate this concept.</p>



<pre class="wp-block-code"><code lang="jsx" class="language-jsx">export function ListComponent() {
  // Our local state
  const [list, setList] = useState([]);

  // Handler to load data from the server
  const fetchList = async () => {
    try {
      const resp = await fetch("https://www.example.com/list");
      const data = await resp.json();

      setList(data);
    } catch {
      showAlert({ text: "Something went wrong!" });
    }
  };

  // We want to fetch only on mount
  useEffect(() => {
    fetchList();
  }, []);

  // Handler responsible for deleting items
  const handleDeleteItem = (id) => {
    return () => {
      try {
        fetch(`https://www.example.com/list/${id}`, {
          method: "DELETE"
        });
        setList((prev) => prev.filter((x) => x.id !== id));
      } catch {
        showAlert({ text: "Something went wrong!" });
      }
    };
  };

  // Here we just render our data items
  return (
    &lt;div className="list-component">
      {list.map(({ id, name }) => (
        &lt;div key={id} className="list-component__item>">
          {/* We want to trim long name with ellipsis */}
          {name.slice(0, 30) + (name.length > 30 ? "..." : "")}

          &lt;div onClick={handleDeleteItem(id)} className="list-component__icon">
            &lt;DeleteIcon />
          &lt;/div>
        &lt;/div>
      ))}
    &lt;/div>
  );
}</code></pre>



<p></p>



<p>We should start by writing our utils that will be used in the model and UI modules.</p>



<pre class="wp-block-code"><code lang="jsx" class="language-jsx">export async function getList(onSuccess) {
  try {
    const resp = await fetch("https://www.example.com/list");
    const data = await resp.json();

    onSuccess(data)
  } catch {
    showAlert({ text: "Something went wrong!" });
  }
}

export async function deleteListItem(id, onSuccess) {
  try {
    fetch(`https://www.example.com/list/${id}`, {
      method: "DELETE"
    });
    onSuccess()
  } catch {
    showAlert({ text: "Something went wrong!" });
  }
}

export function trimName(name) {
  return name.slice(0, 30) + (name.lenght > 30 ? '...' : '')
}</code></pre>



<p></p>



<p>Now we need to implement our business logic. It simply will be a custom hook returning things we need.</p>



<pre class="wp-block-code"><code lang="jsx" class="language-jsx">export function useList() {
  const [list, setList] = useState([]);

  const handleDeleteItem = useCallback((id) => {
    return () => {
      deleteListItem(id, () => {
        setList((prev) => prev.filter((x) => x.id !== id));
      })
    };
  }, []);

  useEffect(() => {
    getList(setList);
  }, []);

  return useMemo(
    () => ({
      list,
      handleDeleteItem
    }),
    [list, handleDeleteItem]
  );
}</code></pre>



<p></p>



<p>The final step is to write our UI module and then combine it all together.</p>



<pre class="wp-block-code"><code lang="jsx" class="language-jsx">export function ListComponentItem({ name, onDelete }) {
  return (
    &lt;div className="list-component__item>">
      {trimName(name)}

      &lt;div onClick={onDelete} className="list-component__icon">
        &lt;DeleteIcon />
      &lt;/div>
    &lt;/div>
  );
}

export function ListComponent() {
  const { list, handleDeleteItem } = useList();

  return (
    &lt;div className="list-component">
      {list.map(({ id, name }) => (
        &lt;ListComponentItem
          key={id}
          name={name}
          onDelete={handleDeleteItem(id)}
        />
      ))}
    &lt;/div>
  );
}</code></pre>



<p></p>



<h2 class="wp-block-heading">3. Use objects map instead of conditions</h2>



<p>When it comes to displaying elements based on specific variables, you can use this powerful tip to simplify your code and make it more intuitive. This approach helps make your components more declarative and easier to understand, while also making it easier to extend their functionality in the future. So, whether you&#8217;re working on a complex project or just starting out, implementing this strategy can have a significant impact on the overall quality of your React code.</p>



<p class="has-text-color has-large-font-size" style="color:#111111"><strong>Problem</strong></p>



<p><img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f49d.png" alt="💝" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Don&#8217;t forget to subscribe and stay up-to-date with the latest tips and tricks for Frontend development! With new information being shared regularly, you won&#8217;t want to miss out on the opportunity to continue improving your skills and producing high-quality React code.</p>



<pre class="wp-block-code"><code lang="jsx" class="language-jsx">function Roles({type}) {
  let Component = UsualAccount

  if (type === 'vip') {
    Component = VipAccount
  }

  if (type === 'admin') {
    Component = AdminAccount
  }

  if (type === 'superadmin') {
    Component = SuperAdminAccount
  }

  return (
    &lt;div className='roles'>
      &lt;Component />
      &lt;RolesStatistics />
    &lt;/div>
  )
}</code></pre>



<p></p>



<p class="has-text-color has-large-font-size" style="color:#111111"><strong>Solution</strong></p>



<pre class="wp-block-code"><code lang="jsx" class="language-jsx">const ROLES_MAP = {
  'vip': VipAccount,
  'usual': UsualAccount,
  'admin': AdminAccount,
  'superadmin': SuperAdminAccount,
}

function Roles({type}) {
  const Component = ROLES_MAP[type]

  return (
    &lt;div className='roles'>
      &lt;Component />
      &lt;RolesStatistics />
    &lt;/div>
  )
}</code></pre>



<p></p>



<h2 class="wp-block-heading">4. Put independent variables outside of React lifecycle</h2>



<p>One important concept to keep in mind is separating logic that doesn&#8217;t require the React component lifecycle methods from the component itself. This approach can greatly improve the clarity of your code by making dependencies more explicit. As a result, it becomes much easier to read and understand your components, leading to more efficient and effective development. So, make sure to keep this technique in mind as you continue to work with React and improve your code.</p>



<p class="has-text-color has-large-font-size" style="color:#111111"><strong>Problem</strong></p>



<pre class="wp-block-code"><code lang="jsx" class="language-jsx">function useItemsList() {
  const defaultItems = [10, 20, 30, 40, 50]
  const [items, setItems] = useState(defaultItems)

  const toggleArrayItem = (arr, val) => {
    return arr.includes(val) ? arr.filter(el => el !== val) : [...arr, val];
  }

  const handleToggleItem = (num) => {
    return () => {
      setItems(toggleArrayItem(items, num))
    }
  }

  return {
    items,
    handleToggleItem,
  }
}</code></pre>



<p></p>



<p class="has-text-color has-large-font-size" style="color:#111111"><strong>Solution</strong></p>



<pre class="wp-block-code"><code lang="jsx" class="language-jsx">const DEFAULT_ITEMS = [
  10, 20, 30, 40, 50
]

const toggleArrayItem = (arr, val) => {
  return arr.includes(val) ? arr.filter(el => el !== val) : [...arr, val];
}

function useItemsList() {
  const [items, setItems] = useState(DEFAULT_ITEMS)

  const handleToggleItem = (num) => {
    return () => {
      setItems(toggleArrayItem(items, num))
    }
  }

  return {
    items,
    handleToggleItem,
  }
}</code></pre>



<p></p>



<p>In conclusion, there are many ways to improve your React code and make it more efficient, effective, and user-friendly. Whether it&#8217;s through currying, separating logic from components, using variables to display elements or some other technique, it&#8217;s important to stay up-to-date with the latest tips and tricks in the world of Frontend development.</p>



<p>I hope, you found this article useful. If you have any questions or suggestions, please leave comments. Your feedback helps me to become better.</p>



<p class="has-text-align-left"><strong>Keep these tips in mind, and never stop striving for excellence in your code.</strong><br><strong>Don’t forget to subscribe<img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f49d.png" alt="💝" class="wp-smiley" style="height: 1em; max-height: 1em;" /></strong><br><strong>Happy coding</strong>!</p>


<script>(function() {
	window.mc4wp = window.mc4wp || {
		listeners: [],
		forms: {
			on: function(evt, cb) {
				window.mc4wp.listeners.push(
					{
						event   : evt,
						callback: cb
					}
				);
			}
		}
	}
})();
</script><!-- Mailchimp for WordPress v4.10.2 - https://wordpress.org/plugins/mailchimp-for-wp/ --><form id="mc4wp-form-2" class="mc4wp-form mc4wp-form-2830 mc4wp-form-theme mc4wp-form-theme-dark" method="post" data-id="2830" data-name="Main Newsletter" ><div class="mc4wp-form-fields"><p>
	<label> 
		<input type="email" name="EMAIL" placeholder="Your email address"  style="max-width: 100%;" required />
	</label>
	<input type="submit" value="Subscribe Now" style="width: 100%;" />
</p></div><label style="display: none !important;">Leave this field empty if you&#8217;re human: <input type="text" name="_mc4wp_honeypot" value="" tabindex="-1" autocomplete="off" /></label><input type="hidden" name="_mc4wp_timestamp" value="1742447210" /><input type="hidden" name="_mc4wp_form_id" value="2830" /><input type="hidden" name="_mc4wp_form_element_id" value="mc4wp-form-2" /><div class="mc4wp-response"></div></form><!-- / Mailchimp for WordPress Plugin -->]]></content:encoded>
					
					<wfw:commentRss>https://learnbeginner.com/4-essential-react-tips-for-writing-better-code-enhance-your-skills-today/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Add Social Share Icons with Unique Hover Effects in a Minute</title>
		<link>https://learnbeginner.com/how-to-add-social-share-icons-with-unique-hover-effects-in-a-minute/</link>
					<comments>https://learnbeginner.com/how-to-add-social-share-icons-with-unique-hover-effects-in-a-minute/#respond</comments>
		
		<dc:creator><![CDATA[Hiren Vaghasiya]]></dc:creator>
		<pubDate>Tue, 02 Jun 2020 20:53:46 +0000</pubDate>
				<category><![CDATA[Beginners Guide]]></category>
		<category><![CDATA[Dev Tips]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[Programmer]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<guid isPermaLink="false">https://learnbeginner.com/?p=2736</guid>

					<description><![CDATA[Creating social share icons with unique hover effects helps encourage social media interaction.]]></description>
										<content:encoded><![CDATA[
<p>Hey Learner, Welcome back with sweet and creative concept of Social Share Icons with Unique Hover Effects in a Minute.</p>



<p>The social media share buttons are a very important part of your website.&nbsp;They allow you and your users to quickly share your content across&nbsp;social media, expanding your&nbsp;audience&nbsp;in seconds with just a few clicks. While it is a small feature to be implemented, you can be creative with it and make the social share buttons interactive in a way that adds a unique experience for your visitors.</p>



<p>One of the ways of doing it is simply using the CSS hover feature. In this tutorial, we&#8217;ll show you how to do that.</p>



<p>You can use any kind of image file&nbsp;you want for your icons such as PNG or SVG. In this tutorial, we wanted to keep things simple and used an icon font, FontAwesome.</p>



<p>This method saves&nbsp;time as you don&#8217;t have to individually download icon images and set their sizes individually. It also cuts down the lines of code on your HTML or CSS file. With FontAwesome, you can simply add the CDN below to add icons to your website.</p>



<p>We&#8217;re also using Bootstrap to organize our grid layout. Please insert the external links below on your HTML file to get started:</p>



<pre class="wp-block-code"><code lang="markup" class="language-markup line-numbers">&lt;link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
&lt;link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"></code></pre>



<p></p>



<h2 class="wp-block-heading">HTML</h2>



<p>The code below is&nbsp;straightforward.</p>



<p>We have a&nbsp;<code>ul</code>&nbsp;list that contains each of the social media links as a list item. If you&#8217;d like to add more&nbsp;social media links, all you have to do is create another&nbsp;<code>li</code>&nbsp;item and add your icon inside the&nbsp;<code>i</code>&nbsp;tag.</p>



<p>We&#8217;re using Bootstrap&#8217;s&nbsp;<code>list-inline</code>&nbsp;class which automatically makes a list horizontal so we don&#8217;t have to add additional lines on the CSS file to make our list items inline.</p>



<pre class="wp-block-code"><code lang="markup" class="language-markup line-numbers">&lt;div class="col-sm-5 col-md-4 col-lg-3 social-links text-center">
    &lt;ul class="list-inline mt-5">
        &lt;li class="list-inline-item">&lt;a href="#">&lt;i class="fa fa-facebook social-icon" aria-hidden="true">&lt;/i>&lt;/a>&lt;/li>
        &lt;li class="list-inline-item">&lt;a href="#">&lt;i class="fa fa-twitter social-icon" aria-hidden="true">&lt;/i>&lt;/a>&lt;/li>
        &lt;li class="list-inline-item">&lt;a href="#">&lt;i class="fa fa-linkedin social-icon" aria-hidden="true">&lt;/i>&lt;/a>&lt;/li>
        &lt;li class="list-inline-item">&lt;a href="#">&lt;i class="fa fa-envelope social-icon" aria-hidden="true">&lt;/i>&lt;/a>&lt;/li>
    &lt;/ul>
&lt;/div></code></pre>



<p></p>



<h2 class="wp-block-heading">CSS</h2>



<p>After we&#8217;re done with building the structure of the social media share list, let&#8217;s get to how we can display them beautifully with interesting hover effects. Copy and paste the code below in your CSS file:</p>



<pre class="wp-block-code"><code lang="css" class="language-css line-numbers">.fa,
.fas {
    font-family: 'FontAwesome';
}

.social-icon {
    color: #fff;
    background: #221B14;
    font-size: 1em;
    border-radius: 50%;
    line-height: 2.2em;
    width: 2.1em;
    height: 2.1em;
    text-align: center;
    display: inline-block;
}

li:hover {
    transform: translateY(-4px);
    transition: 0.3s;
}</code></pre>



<p></p>



<p>FontAwesome comes with the default&nbsp;<code>.fa</code>&nbsp;or&nbsp;<code>.fas</code>&nbsp;classes. We need to select those classes and set their font-family as &#8220;Font Awesome&#8221;, otherwise, the icons will show up as blank squares.&nbsp;</p>



<p>In order to put the icons in a circular border background, we need to give a specific value to the icon&nbsp;<code>font-size</code>,&nbsp;<code>line-height</code>, and the circle&nbsp;<code>width</code>&nbsp;and&nbsp;<code>height</code>. First, we make the border circle by giving setting its radius as 50%. The icon font size is up to you. Just make sure that the&nbsp;<code>line-height</code>,&nbsp;<code>width</code>, and&nbsp;<code>height</code>&nbsp;values are about as twice as big as the&nbsp;<code>font-size</code>. That way your icon will be well placed in the center, both horizontally and vertically.</p>



<p>Once we ensure that every element in our list is aligned nicely, we can get to the fun part, the hover effect. We&#8217;re making each of the icons move up 4px on hover. All we need to do is select each list item add a&nbsp;<code>:hover</code>&nbsp;after it and write&nbsp;<code>transform:&nbsp;translateY(-4px)</code>.Then, while this is optional, we set the&nbsp;<code>transition</code>&nbsp;to 0.3s to so that when we hover over the icon, it will move up gradually in a smooth way rather than move up abruptly.</p>



<p>There we have it. You can hover over the icons on JSFiddle below to see how they move on hover:</p>



<script async="" src="//jsfiddle.net/learnbeginner/eprwqnz6/embed/result,html,css/dark/"></script>



<p></p>



<h5 class="wp-block-heading">Thank you for reading, and let’s connect!</h5>



<p>Thank you for reading my blog, feel free to subscribe to my email newsletter, and ask questions and give your valuable suggestions.</p>


<script>(function() {
	window.mc4wp = window.mc4wp || {
		listeners: [],
		forms: {
			on: function(evt, cb) {
				window.mc4wp.listeners.push(
					{
						event   : evt,
						callback: cb
					}
				);
			}
		}
	}
})();
</script><!-- Mailchimp for WordPress v4.10.2 - https://wordpress.org/plugins/mailchimp-for-wp/ --><form id="mc4wp-form-3" class="mc4wp-form mc4wp-form-2830 mc4wp-form-theme mc4wp-form-theme-dark" method="post" data-id="2830" data-name="Main Newsletter" ><div class="mc4wp-form-fields"><p>
	<label> 
		<input type="email" name="EMAIL" placeholder="Your email address"  style="max-width: 100%;" required />
	</label>
	<input type="submit" value="Subscribe Now" style="width: 100%;" />
</p></div><label style="display: none !important;">Leave this field empty if you&#8217;re human: <input type="text" name="_mc4wp_honeypot" value="" tabindex="-1" autocomplete="off" /></label><input type="hidden" name="_mc4wp_timestamp" value="1742447210" /><input type="hidden" name="_mc4wp_form_id" value="2830" /><input type="hidden" name="_mc4wp_form_element_id" value="mc4wp-form-3" /><div class="mc4wp-response"></div></form><!-- / Mailchimp for WordPress Plugin -->]]></content:encoded>
					
					<wfw:commentRss>https://learnbeginner.com/how-to-add-social-share-icons-with-unique-hover-effects-in-a-minute/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Preparing Your Website for COVID-19 : Alert Bar</title>
		<link>https://learnbeginner.com/preparing-your-website-for-covid-19-alert-bar/</link>
					<comments>https://learnbeginner.com/preparing-your-website-for-covid-19-alert-bar/#respond</comments>
		
		<dc:creator><![CDATA[Hiren Vaghasiya]]></dc:creator>
		<pubDate>Tue, 02 Jun 2020 20:22:15 +0000</pubDate>
				<category><![CDATA[Beginners Guide]]></category>
		<category><![CDATA[Dev Tips]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[Programmer]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Development]]></category>
		<guid isPermaLink="false">https://learnbeginner.com/?p=2730</guid>

					<description><![CDATA[Easy to use and customize, the COVID Alert Bar allows you to create highly-visible messages at the top of your homepage to promote critical instructions, timely updates, and links to details about your COVID-19 response.]]></description>
										<content:encoded><![CDATA[
<p>COVID-19 is drastically changing the ways businesses operate, pushing them to adopt new ways of taking care of their customers and employees. Even after the pandemic is over, the impact of the virus will fundamentally change the way we think about communicating, providing services, and using digital tools and channels.</p>



<p>Regardless of your industry, communicating with your audience&nbsp;in a timely manner has never been more important. Over the years, we&#8217;ve developed a library of simple yet highly effective tools for transforming your website into a crisis communications resource – and we&#8217;re sharing&nbsp;them with you&nbsp;to help fight COVID-19.</p>



<p>This will be a series of articles with each installment focusing on&nbsp;a separate tool and teaching you how to implement it. In Part 1, we&#8217;ll show you how to add an alert bar&nbsp;to promote breaking news, updates, instructions, and other key information to your customers during a crisis situation.</p>



<h2 class="wp-block-heading">Adding an Alert Bar to the Top of Your Website</h2>



<p>Alert bars – also known as sticky bars, floating bars, notification bars, or hello bars – are a flexible, easy-to-use tool that span&nbsp;the whole width of a webpage. Adding an alert bar is a perfect way to capture&nbsp;your visitors&#8217; attention and keep&nbsp;audiences about your COVID-19 response strategy. A few tips on the usability of alert bars:</p>



<ul class="wp-block-list"><li>Place&nbsp;the alert bar on top of the page where it will always&nbsp;be visible</li><li>Make sure the color of the alert bar is different than your website&#8217;s main colors so that it immediately stands out</li><li>Once an emergency is over, turn off your alert bar so it&nbsp;provides a disruptive presence when used in the future</li></ul>



<p>While ideal for communicating your COVID-19 news and updates, alert bars can also be used for a variety of non-emergency applications, including:</p>



<ul class="wp-block-list"><li>Changes to hours of operation or contact info</li><li>Service changes for transportation authorities</li><li>Limited-time sales promotions or offers</li><li>Scheduled website maintenance</li></ul>



<p>Regardless of your message, an alert bar is incredibly effective because it grabs a visitor&#8217;s attention without interfering with the rest of your website content.</p>



<p>This tutorial walks you through how to build out and customize an alert bar on your website. Below are the HTML and&nbsp;CSS required.</p>



<h2 class="wp-block-heading">HTML</h2>



<p>Add the HTML snippet to your templates or webpage, preferably at the top above any navigation or header so that it has prominent positioning.</p>



<pre class="wp-block-code"><code lang="markup" class="language-markup line-numbers">&lt;div class="covid-alert">
    CORONAVIRUS (COVID-19) ALERTS: &lt;a href="#">Click here for the latest information&lt;/a>
&lt;/div></code></pre>



<h2 class="wp-block-heading">CSS</h2>



<p>Customize the background color and text/link colors by modifying the hexidecimal colors.</p>



<pre class="wp-block-code"><code lang="css" class="language-css line-numbers">body {
    margin: 0px;
    min-height: 75px;
    overflow: hidden;
}

.covid-alert {
    background: #cc0202;
    color: #fff;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
    font-family: Inter, sans-serif;
}

.covid-alert a {
    color: #fff;
    text-decoration: underline;
    font-weight: 400;
}</code></pre>



<h2 class="wp-block-heading">Result</h2>



<script async="" src="//jsfiddle.net/learnbeginner/g1q9bvpk/embed/result,html,css/dark/"></script>



<p></p>



<h5 class="wp-block-heading">Thank you for reading, and let’s connect!</h5>



<p>Thank you for reading my blog, feel free to subscribe to my email newsletter, and ask questions and give your valuable suggestions.</p>


<script>(function() {
	window.mc4wp = window.mc4wp || {
		listeners: [],
		forms: {
			on: function(evt, cb) {
				window.mc4wp.listeners.push(
					{
						event   : evt,
						callback: cb
					}
				);
			}
		}
	}
})();
</script><!-- Mailchimp for WordPress v4.10.2 - https://wordpress.org/plugins/mailchimp-for-wp/ --><form id="mc4wp-form-4" class="mc4wp-form mc4wp-form-2830 mc4wp-form-theme mc4wp-form-theme-dark" method="post" data-id="2830" data-name="Main Newsletter" ><div class="mc4wp-form-fields"><p>
	<label> 
		<input type="email" name="EMAIL" placeholder="Your email address"  style="max-width: 100%;" required />
	</label>
	<input type="submit" value="Subscribe Now" style="width: 100%;" />
</p></div><label style="display: none !important;">Leave this field empty if you&#8217;re human: <input type="text" name="_mc4wp_honeypot" value="" tabindex="-1" autocomplete="off" /></label><input type="hidden" name="_mc4wp_timestamp" value="1742447210" /><input type="hidden" name="_mc4wp_form_id" value="2830" /><input type="hidden" name="_mc4wp_form_element_id" value="mc4wp-form-4" /><div class="mc4wp-response"></div></form><!-- / Mailchimp for WordPress Plugin -->]]></content:encoded>
					
					<wfw:commentRss>https://learnbeginner.com/preparing-your-website-for-covid-19-alert-bar/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Create an Creative FAQ Section</title>
		<link>https://learnbeginner.com/how-to-create-an-creative-faq-section/</link>
					<comments>https://learnbeginner.com/how-to-create-an-creative-faq-section/#respond</comments>
		
		<dc:creator><![CDATA[Hiren Vaghasiya]]></dc:creator>
		<pubDate>Tue, 02 Jun 2020 20:09:09 +0000</pubDate>
				<category><![CDATA[Beginners Guide]]></category>
		<category><![CDATA[Dev Tips]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Programmer]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Development]]></category>
		<guid isPermaLink="false">https://learnbeginner.com/?p=2727</guid>

					<description><![CDATA[A user-friendly FAQ page can improve your website's SEO while saving time and streamlining the customer experience. With Bootstrap's dynamic accordion, you can have a sleek, efficient, mobile responsive FAQ section in just a few steps.]]></description>
										<content:encoded><![CDATA[
<p>Sometimes, your audience wants quick answers to common questions. When they visit your website, you can give them a direct path to those answers by featuring an FAQ page.</p>



<p>Every website should have an FAQ, and there are three big reasons why:</p>



<p><strong>First, the concept of an&nbsp;FAQ is well-recognized across the web.</strong>&nbsp;The &#8220;Frequently Asked Questions&#8221;&nbsp;format originated in 1982&nbsp;and has matured from offline to online. People know what it is, and they seek it out when they need information in a simple, easy-to-digest format.&nbsp;But it&#8217;s also well-understood by Google and other search engines, allowing them to index your content more effectively. As a result, just&nbsp;<em>having</em>&nbsp;an FAQ page can be an&nbsp;instant rocket booster for your SEO.</p>



<p><strong>Second, an FAQ page can help improve your overall customer experience</strong>. The more helpful your FAQ content is, the&nbsp;fewer clicks a website visitor needs to convert. This also translates into greater productivity for you and your team by reducing the&nbsp;number of calls,&nbsp;chat sessions, or e-mails you receive with basic questions.&nbsp;</p>



<p><strong>Finally, having an FAQ gives your website visitors a rapid resource for information during an emergency</strong>. As we&#8217;ve seen with the COVID-19 pandemic, websites have become an essential tool for keeping audiences up to date on guidance, instructions, and other critical information. A good FAQ page can help support your strategy&nbsp;and should have an easy-to-use backend manager for making quick revisions about closures, hours of operation, online services, and more.</p>



<p>In this article, we&#8217;ll give you the code and guidance&nbsp;to add an efficient FAQ section on your website. We&#8217;ll be using an accordion, which allows you to feature lots of questions while &#8220;hiding&#8221; the content below each entry, making it less cumbersome. This lets your audience browse questions and view answers on the same page with a single click.</p>



<h2 class="wp-block-heading">Getting Started</h2>



<p>To build this FAQ section, we&#8217;re using Bootstrap and FontAwesome for the icons. Copy and paste the links below in the head section of your HTML file:</p>



<pre class="wp-block-code"><code lang="markup" class="language-markup line-numbers">&lt;!-- Bootstrap CSS -->
&lt;link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
&lt;!-- FontAwesome CSS -->
&lt;link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.css">
&lt;!-- jQuery first, then Popper.js, then Bootstrap JS -->
&lt;script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous">&lt;/script>
&lt;script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous">&lt;/script>
&lt;script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous">&lt;/script></code></pre>



<h2 class="wp-block-heading">HTML</h2>



<p>The main structure below is made with Bootstrap&#8217;s accordion component. Bootstrap&#8217;s accordions are simple JavaScript enabled card components that enable showing and hiding elements with a click.</p>



<p>They restrict the&nbsp;card components to only open one at a time.&nbsp;That means when a user clicks on a question, the answer will be revealed but when they click on another question, all other answers will be collapsed. By using the accordion-style, your users can easily scan through many questions and find the information they&#8217;re looking since there will be much less clutter on the page.</p>



<p>The other benefit is the users won&#8217;t have to go to another page to see the answer. In the code below, we only included a paragraph as an answer but you&#8217;re free to replace and supplement the answer content with any content you&#8217;d like such as text, images, or even videos.</p>



<pre class="wp-block-code"><code lang="markup" class="language-markup line-numbers">&lt;div class="text-center">
    &lt;h2 class="mt-5 mb-5">FAQ&lt;/h2>
&lt;/div>
&lt;section class="container my-5" id="maincontent">
    &lt;section id="accordion">
        &lt;a class="py-3 d-block h-100 w-100 position-relative z-index-1 pr-1 text-secondary border-top" aria-controls="faq-17" aria-expanded="false" data-toggle="collapse" href="#faq-17" role="button">
            &lt;div class="position-relative">
                &lt;h2 class="h4 m-0 pr-3">
                    What if I want custom gear?
                &lt;/h2>
                &lt;div class="position-absolute top-0 right-0 h-100 d-flex align-items-center">
                    &lt;i class="fa fa-plus">&lt;/i>
                &lt;/div>
            &lt;/div>
        &lt;/a>
        &lt;div class="collapse" id="faq-17" style="">
            &lt;div class="card card-body border-0 p-0">
                &lt;p>Custom gear can be ordered through our contact form. Additional fees may apply.&lt;/p>

            &lt;/div>
        &lt;/div>

        &lt;a class="py-3 d-block h-100 w-100 position-relative z-index-1 pr-1 text-secondary  border-top" aria-controls="faq-20" aria-expanded="false" data-toggle="collapse" href="#faq-20" role="button">
            &lt;div class="position-relative">
                &lt;h2 class="h4 m-0 pr-3">
                    What is the best email to reach you at?
                &lt;/h2>
                &lt;div class="position-absolute top-0 right-0 h-100 d-flex align-items-center">
                    &lt;i class="fa fa-plus">&lt;/i>
                &lt;/div>
            &lt;/div>
        &lt;/a>
        &lt;div class="collapse" id="faq-20">
            &lt;div class="card card-body border-0 p-0">
                &lt;p>The best email for any inquiries is email@email.com!&lt;/p>
                &lt;p>
                &lt;/p>
            &lt;/div>
        &lt;/div>

        &lt;a class="py-3 d-block h-100 w-100 position-relative z-index-1 pr-1 text-secondary  border-top" aria-controls="faq-21" aria-expanded="false" data-toggle="collapse" href="#faq-21" role="button">
            &lt;div class="position-relative">
                &lt;h2 class="h4 m-0 pr-3">
                    Where can I read more about this company?
                &lt;/h2>
                &lt;div class="position-absolute top-0 right-0 h-100 d-flex align-items-center">
                    &lt;i class="fa fa-plus">&lt;/i>
                &lt;/div>
            &lt;/div>
        &lt;/a>
        &lt;div class="collapse" id="faq-21">
            &lt;div class="card card-body border-0 p-0">
                &lt;p>Lorem ipsum dolor sit!&lt;/p>
                &lt;p>
                &lt;/p>
            &lt;/div>
        &lt;/div>

        &lt;a class="py-3 d-block h-100 w-100 position-relative z-index-1 pr-1 text-secondary  border-top" aria-controls="faq-22" aria-expanded="false" data-toggle="collapse" href="#faq-22" role="button">
            &lt;div class="position-relative">
                &lt;h2 class="h4 m-0 pr-3">
                    What is the best time to call?
                &lt;/h2>
                &lt;div class="position-absolute top-0 right-0 h-100 d-flex align-items-center">
                    &lt;i class="fa fa-plus">&lt;/i>
                &lt;/div>
            &lt;/div>
        &lt;/a>
        &lt;div class="collapse" id="faq-22">
            &lt;div class="card card-body border-0 p-0">
                &lt;p>The best time to call is 24/7! We are always available to answer any questions.&lt;/p>
                &lt;p>
                &lt;/p>
            &lt;/div>
        &lt;/div>
    &lt;/section>
&lt;/section></code></pre>



<h2 class="wp-block-heading">CSS</h2>



<p>The CSS code adds colors, font type, and size. Copy and paste it in your stylesheet and change the styling to match your own website:</p>



<pre class="wp-block-code"><code lang="css" class="language-css line-numbers">.text-secondary {
    color: #3d5d6f;
}

.h4,
h4 {
    font-size: 1.2rem;
}

h2 {
    color: #333;
}

.fa,
.fas {
    font-family: 'FontAwesome';
    font-weight: 400;
    font-size: 1.2rem;
    font-style: normal;
}

.right-0 {
    right: 0;
}

.top-0 {
    top: 0;
}

.h-100 {
    height: 100%;
}

a.text-secondary:focus,
a.text-secondary:hover {
    text-decoration: none;
    color: #22343e;
}

#accordion .fa-plus {
    transition: -webkit-transform 0.25s ease-in-out;
    transition: transform 0.25s ease-in-out;
    transition: transform 0.25s ease-in-out, -webkit-transform 0.25s ease-in-out;
}

#accordion a[aria-expanded=true] .fa-plus {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}</code></pre>



<p>And here it is. Check out the JSFiddle below and click on the FAQ questions to reveal the answer:</p>



<script async="" src="//jsfiddle.net/learnbeginner/hax6sLg5/embed/result,html,css/dark/"></script>



<h5 class="wp-block-heading">Thank you for reading, and let’s connect!</h5>



<p>Thank you for reading my blog, feel free to subscribe to my email newsletter, and ask questions and give your valuable suggestions.</p>


<script>(function() {
	window.mc4wp = window.mc4wp || {
		listeners: [],
		forms: {
			on: function(evt, cb) {
				window.mc4wp.listeners.push(
					{
						event   : evt,
						callback: cb
					}
				);
			}
		}
	}
})();
</script><!-- Mailchimp for WordPress v4.10.2 - https://wordpress.org/plugins/mailchimp-for-wp/ --><form id="mc4wp-form-5" class="mc4wp-form mc4wp-form-2830 mc4wp-form-theme mc4wp-form-theme-dark" method="post" data-id="2830" data-name="Main Newsletter" ><div class="mc4wp-form-fields"><p>
	<label> 
		<input type="email" name="EMAIL" placeholder="Your email address"  style="max-width: 100%;" required />
	</label>
	<input type="submit" value="Subscribe Now" style="width: 100%;" />
</p></div><label style="display: none !important;">Leave this field empty if you&#8217;re human: <input type="text" name="_mc4wp_honeypot" value="" tabindex="-1" autocomplete="off" /></label><input type="hidden" name="_mc4wp_timestamp" value="1742447210" /><input type="hidden" name="_mc4wp_form_id" value="2830" /><input type="hidden" name="_mc4wp_form_element_id" value="mc4wp-form-5" /><div class="mc4wp-response"></div></form><!-- / Mailchimp for WordPress Plugin -->]]></content:encoded>
					
					<wfw:commentRss>https://learnbeginner.com/how-to-create-an-creative-faq-section/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Create Creative Quick Links</title>
		<link>https://learnbeginner.com/how-to-create-creative-quick-links/</link>
					<comments>https://learnbeginner.com/how-to-create-creative-quick-links/#respond</comments>
		
		<dc:creator><![CDATA[Hiren Vaghasiya]]></dc:creator>
		<pubDate>Tue, 02 Jun 2020 19:24:00 +0000</pubDate>
				<category><![CDATA[Beginners Guide]]></category>
		<category><![CDATA[Dev Tips]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Programmer]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Development]]></category>
		<guid isPermaLink="false">https://learnbeginner.com/?p=2701</guid>

					<description><![CDATA[Quick Links can help highlight the most important pages on your website. With Bootstrap's column structure, you can easily create an intuitive and stylish Quick Links section.]]></description>
										<content:encoded><![CDATA[
<p>Archimedes said,&nbsp;&#8220;the shortest path between two points is a straight line.&#8221; Obviously, he never used a&nbsp;website.</p>



<p>All too often, the path for&nbsp;visitors&nbsp;is less than straight – and that impacts everything from page bounce rates to the overall customer experience.</p>



<p>You only have a few seconds to grab a user&#8217;s attention and guide them to the next step in their journey. That&#8217;s why Quick Links are a great way to connect your visitors&nbsp;to the most frequented or&nbsp;highly trafficked&nbsp;pages on your website. They&#8217;re simple, intuitive, visual, and more clickable than your average link.&nbsp;</p>



<p>By utilizing Bootstrap&#8217;s column structure capabilities, you can dynamically handle the styling of your Quick Links, making it easy to add new links in a well-organized grid that&#8217;s easy on the eyes.</p>



<p>In this tutorial, we&#8217;ll show you how easy it is to create a Quick Links section using Bootstrap, HTML, and CSS.</p>



<h2 class="wp-block-heading">Getting Started</h2>



<p>Since we&#8217;ll be using Bootstrap, copy and paste the Bootstrap CDN links below in the head section of your HTML file:</p>



<pre class="wp-block-code"><code lang="markup" class="language-markup line-numbers">&lt;!-- Bootstrap CSS -->
&lt;link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
&lt;!-- jQuery first, then Popper.js, then Bootstrap JS -->
&lt;script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous">&lt;/script>
&lt;script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous">&lt;/script>
&lt;script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous">&lt;/script></code></pre>



<p></p>



<h2 class="wp-block-heading">HTML</h2>



<p>Below, we have a Bootstrap grid structure and 8 boxes for links. Each box is sized using Bootstrap&#8217;s column structure and have the classnames&nbsp;<code>col-xl-3 col-lg-4 col-sm-6 col-12</code>&nbsp;meaning in large desktop screens, there will be four boxes laid out horizontally, in regular desktop screens three, on smaller screens two and on mobile screens, each column will take up the entire width.</p>



<p>The total width is made up of 12-columns. You can adjust the number of columns by changing the numbers, for example, if you&#8217;d like to display only three columns on large screens, you can change the&nbsp;<code>col-xl-3</code>&nbsp;value to&nbsp;<code>col-xl-4</code>&nbsp;and have three equal-width&nbsp;columns across.</p>



<pre class="wp-block-code"><code lang="markup" class="language-markup line-numbers">&lt;section class="section mt-5 mb-5">
    &lt;div class="container">
        &lt;div class="row">
            &lt;div class="col-12">
                &lt;h1 class="text-center mb-5">More Information&lt;/h1>

                &lt;div class="row">
                    &lt;div class="col-xl-3 col-lg-4 col-sm-6 col-12">
                        &lt;div class="box-information mx-0">
                            &lt;a href="">Asteroid &lt;br>packages&lt;/a>
                        &lt;/div>
                        &lt;!-- .box-information-->
                    &lt;/div>

                    &lt;div class="col-xl-3 col-lg-4 col-sm-6 col-12">
                        &lt;div class="box-information mx-0">
                            &lt;a href="">Space excursions&lt;/a>
                        &lt;/div>
                        &lt;!-- .box-information-->
                    &lt;/div>

                    &lt;div class="col-xl-3 col-lg-4 col-sm-6 col-12">
                        &lt;div class="box-information mx-0">
                            &lt;a href="">Five-star &amp; &lt;br>menu options&lt;/a>
                        &lt;/div>
                        &lt;!-- .box-information-->
                    &lt;/div>

                    &lt;div class="col-xl-3 col-lg-4 col-sm-6 col-12">
                        &lt;div class="box-information mx-0">
                            &lt;a href="">Orbital entertainment&lt;/a>
                        &lt;/div>
                        &lt;!-- .box-information-->
                    &lt;/div>

                    &lt;div class="col-xl-3 col-lg-4 col-sm-6 col-12">
                        &lt;div class="box-information mx-0">
                            &lt;a href="">SpaceJet Flex &lt;br>ticketing&lt;/a>
                        &lt;/div>
                        &lt;!-- .box-information-->
                    &lt;/div>

                    &lt;div class="col-xl-3 col-lg-4 col-sm-6 col-12">
                        &lt;div class="box-information mx-0">
                            &lt;a href="">Shuttle &lt;br>Locations&lt;/a>
                        &lt;/div>
                        &lt;!-- .box-information-->
                    &lt;/div>

                    &lt;div class="col-xl-3 col-lg-4 col-sm-6 col-12">
                        &lt;div class="box-information mx-0">
                            &lt;a href="">Transit Services&lt;/a>
                        &lt;/div>
                        &lt;!-- .box-information-->
                    &lt;/div>

                    &lt;div class="col-xl-3 col-lg-4 col-sm-6 col-12">
                        &lt;div class="box-information mx-0">
                            &lt;a href="">JetPet program&lt;/a>
                        &lt;/div>
                        &lt;!-- .box-information-->
                    &lt;/div>
                &lt;/div>
                &lt;!-- .row-->
            &lt;/div>
        &lt;/div>
    &lt;/div>
&lt;/section></code></pre>



<p></p>



<h2 class="wp-block-heading">CSS</h2>



<p>Customize the background color, hover color,&nbsp;and text/link colors by modifying the hex values.</p>



<pre class="wp-block-code"><code lang="css" class="language-css">.section h1 {
    font-size: 37px;
}

.section .box-information {
    height: 115px;
    border: 1px solid #dbdbdb;
    margin-bottom: 30px;
}

.section .box-information a {
    font-size: 21px;
    line-height: 29px;
    font-weight: 600;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    color: #222;
    border-bottom: 4px solid #d60e96;
}

.section .box-information a:hover {
    transition: all, 0.4s, ease;
    background: linear-gradient(135deg, #ff9024 1%, #ff705e 44%, #ff5a85 55%, #ff2cd6 100%);
    color: #fff;
    text-decoration: none;
}


/* Media Queries */

@media (min-width: 768px) {
    .section h1 {
        margin-bottom: 8px;
    }
}

@media (min-width: 992px) {
    .section .box-information {
        margin: 0 5px 30px;
    }
}

@media (max-width: 767.98px) {
    .section .box-information {
        height: 85px;
        margin-bottom: 15px;
    }
}</code></pre>



<p></p>



<p>And there it is!&nbsp;Check out the JSFiddle below to see how the quick links look before committing to its use.</p>



<script async="" src="//jsfiddle.net/learnbeginner/vtzdx8go/embed/result,html,css/dark/"></script>



<p></p>



<h5 class="wp-block-heading">Thank you for reading, and let’s connect!</h5>



<p>Thank you for reading my blog, feel free to subscribe to my email newsletter, and ask questions and give your valuable suggestions.</p>


<script>(function() {
	window.mc4wp = window.mc4wp || {
		listeners: [],
		forms: {
			on: function(evt, cb) {
				window.mc4wp.listeners.push(
					{
						event   : evt,
						callback: cb
					}
				);
			}
		}
	}
})();
</script><!-- Mailchimp for WordPress v4.10.2 - https://wordpress.org/plugins/mailchimp-for-wp/ --><form id="mc4wp-form-6" class="mc4wp-form mc4wp-form-2830 mc4wp-form-theme mc4wp-form-theme-dark" method="post" data-id="2830" data-name="Main Newsletter" ><div class="mc4wp-form-fields"><p>
	<label> 
		<input type="email" name="EMAIL" placeholder="Your email address"  style="max-width: 100%;" required />
	</label>
	<input type="submit" value="Subscribe Now" style="width: 100%;" />
</p></div><label style="display: none !important;">Leave this field empty if you&#8217;re human: <input type="text" name="_mc4wp_honeypot" value="" tabindex="-1" autocomplete="off" /></label><input type="hidden" name="_mc4wp_timestamp" value="1742447210" /><input type="hidden" name="_mc4wp_form_id" value="2830" /><input type="hidden" name="_mc4wp_form_element_id" value="mc4wp-form-6" /><div class="mc4wp-response"></div></form><!-- / Mailchimp for WordPress Plugin -->]]></content:encoded>
					
					<wfw:commentRss>https://learnbeginner.com/how-to-create-creative-quick-links/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Add Pop Up Video into a Website Easily</title>
		<link>https://learnbeginner.com/how-to-add-pop-up-video-into-a-website-easily/</link>
					<comments>https://learnbeginner.com/how-to-add-pop-up-video-into-a-website-easily/#respond</comments>
		
		<dc:creator><![CDATA[Hiren Vaghasiya]]></dc:creator>
		<pubDate>Tue, 02 Jun 2020 11:32:22 +0000</pubDate>
				<category><![CDATA[Beginners Guide]]></category>
		<category><![CDATA[Dev Tips]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Programmer]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Development]]></category>
		<guid isPermaLink="false">https://learnbeginner.com/?p=2695</guid>

					<description><![CDATA[Excellent content is important but sometimes words on a page aren't as impactful as imagery. Pop up video elements can do wonders for both giving your website a human voice while also showcasing a more visually engaging element to your website.]]></description>
										<content:encoded><![CDATA[
<p>Hey Learner, Welcome back . . .</p>



<p>Video remains one of the most popular forms of content marketing around &#8212; and it&#8217;s certainly one of the most beneficial for a website.</p>



<p>Here are some of the key benefits to adding video to your website:&nbsp;</p>



<p><strong>&#8211; Increased engagement.</strong>&nbsp;By the very nature of the video, it invites engagement. Study after study has shown that people are more likely to watch a video about a topic rather than read a blog about the same topic. People simply love visual elements &#8212; especially if those elements move and capture a viewer&#8217;s attention.&nbsp;</p>



<p><strong>&#8211; Excellent ROI.</strong>&nbsp;Video content elements aren&#8217;t always a priority for content marketing teams, but organizations that use them swear they&#8217;re worth it. Over&nbsp;<a href="https://www.wyzowl.com/video-marketing-statistics-2017/" target="_blank" rel="noreferrer noopener">83% of businesses</a>&nbsp;report that their investment in video elements are worth it.</p>



<p><strong>&#8211; Improved SEO.</strong>&nbsp;This goes back to our first point. Videos naturally increase the time people spend on your website. Longer exposure builds trust with your website &#8212; and not just for the human viewers engaging with your content. Longer times and lower bounce rates tell Google that your site probably has viable, relevant content to certain queries. Some studies have indicated that websites are&nbsp;<a rel="noreferrer noopener" href="https://www.moovly.com/blog/4-great-reasons-you-should-use-video-marketing" target="_blank">53% more likely to show up on page one results</a>&nbsp;if they have embedded videos.</p>



<p><strong>&#8211; Boosted conversions</strong>. Studies have shown that putting a video on a landing page can<a href="https://www.wyzowl.com/video-marketing-statistics-2017/">&nbsp;improve conversions by nearly 80%</a>.</p>



<p>Here&#8217;s how to create a popup video element utilizing&nbsp;<a rel="noreferrer noopener" href="http://dimsemenov.com/plugins/magnific-popup/" target="_blank">Magnific Popup</a>&nbsp;is a responsive lightbox:</p>



<p>So, We start with the coding of HTML</p>



<h3 class="wp-block-heading">HTML</h3>



<p>The HTML uses just some default bootstrap classes, including the Bootstrap responsive embed classes:</p>



<pre class="wp-block-code"><code lang="markup" class="language-markup line-numbers">&lt;div class="container">
  &lt;div class="row">
    &lt;div class="col-sm-12">
      &lt;h1 class="text-center display-4 mt-5">
        Solodev Web Design &amp; Content Management Software
      &lt;/h1>
      &lt;p class="text-center mt-5">
        &lt;a href="#headerPopup" id="headerVideoLink" target="_blank" class="btn btn-outline-danger popup-modal">See Why Solodev WXP&lt;/a>
      &lt;/p>
      &lt;div id="headerPopup" class="mfp-hide embed-responsive embed-responsive-21by9">
        &lt;iframe class="embed-responsive-item" width="854" height="480" src="https://www.youtube.com/embed/qN3OueBm9F4?autoplay=1" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen>&lt;/iframe>
      &lt;/div>
    &lt;/div>
  &lt;/div>
&lt;/div></code></pre>



<h3 class="wp-block-heading">CSS</h3>



<p>We only need some CSS to control how the embed and popup overlay interact:</p>



<pre class="wp-block-code"><code lang="css" class="language-css line-numbers">#headerPopup{
  width:75%;
  margin:0 auto;
}

#headerPopup iframe{
  width:100%;
  margin:0 auto;
}</code></pre>



<h3 class="wp-block-heading">JS</h3>



<p>Some simple JavaScript that initializes Magnific Popup on click:</p>



<pre class="wp-block-code"><code lang="javascript" class="language-javascript line-numbers">$(document).ready(function() {
  $('#headerVideoLink').magnificPopup({
    type:'inline',
    midClick: true // Allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source in href.
  });         
});</code></pre>



<p>Want to see how it all looks before committing to its use? Check out the JSFiddle below.</p>



<script async="" src="//jsfiddle.net/learnbeginner/a0v9owcq/embed/result,html,css,js/dark/"></script>



<p></p>



<h5 class="wp-block-heading">Thank you for reading, and let’s connect!</h5>



<p>Thank you for reading my blog, feel free to subscribe to my email newsletter, and ask questions and give your valuable suggestions.</p>


<script>(function() {
	window.mc4wp = window.mc4wp || {
		listeners: [],
		forms: {
			on: function(evt, cb) {
				window.mc4wp.listeners.push(
					{
						event   : evt,
						callback: cb
					}
				);
			}
		}
	}
})();
</script><!-- Mailchimp for WordPress v4.10.2 - https://wordpress.org/plugins/mailchimp-for-wp/ --><form id="mc4wp-form-7" class="mc4wp-form mc4wp-form-2830 mc4wp-form-theme mc4wp-form-theme-dark" method="post" data-id="2830" data-name="Main Newsletter" ><div class="mc4wp-form-fields"><p>
	<label> 
		<input type="email" name="EMAIL" placeholder="Your email address"  style="max-width: 100%;" required />
	</label>
	<input type="submit" value="Subscribe Now" style="width: 100%;" />
</p></div><label style="display: none !important;">Leave this field empty if you&#8217;re human: <input type="text" name="_mc4wp_honeypot" value="" tabindex="-1" autocomplete="off" /></label><input type="hidden" name="_mc4wp_timestamp" value="1742447210" /><input type="hidden" name="_mc4wp_form_id" value="2830" /><input type="hidden" name="_mc4wp_form_element_id" value="mc4wp-form-7" /><div class="mc4wp-response"></div></form><!-- / Mailchimp for WordPress Plugin -->]]></content:encoded>
					
					<wfw:commentRss>https://learnbeginner.com/how-to-add-pop-up-video-into-a-website-easily/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>The fastest way to convert array like object into js array</title>
		<link>https://learnbeginner.com/the-fastest-way-to-convert-array-like-object-into-js-array/</link>
					<comments>https://learnbeginner.com/the-fastest-way-to-convert-array-like-object-into-js-array/#respond</comments>
		
		<dc:creator><![CDATA[Hiren Vaghasiya]]></dc:creator>
		<pubDate>Wed, 06 May 2020 18:38:53 +0000</pubDate>
				<category><![CDATA[Beginners Guide]]></category>
		<category><![CDATA[Dev Tips]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[ES6]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Development]]></category>
		<guid isPermaLink="false">https://learnbeginner.com/?p=2615</guid>

					<description><![CDATA[In this fast programming era every developer face this issue including me. So I am finding best and fastest way to convert array like object into js array.]]></description>
										<content:encoded><![CDATA[
<p>In this fast programming era every developer face this issue including me. So I am finding best and fastest way to convert array like object into js array.</p>



<h4 class="wp-block-heading">1. What is the problem?</h4>



<p>Suppose you have a list of divs on your page and you query them via&nbsp;<code>document.querySelectorAll</code>.</p>



<pre class="wp-block-code"><code lang="javascript" class="language-javascript">let rows = document.querySelectorAll('img')
NodeList(11) </code></pre>



<p>However,&nbsp;<code>rows</code>&nbsp;is not an array that you can manipulate with all of the handy array methods, like&nbsp;<code>map(), filter()</code>etc.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1185" height="428" src="https://i2.wp.com/learnbeginner.com/wp-content/uploads/2020/05/0015-1_4MkBJprFSx6GXT4os8b-4g.png?fit=770%2C278" alt="" class="wp-image-2617" srcset="https://learnbeginner.com/wp-content/uploads/2020/05/0015-1_4MkBJprFSx6GXT4os8b-4g.png 1185w, https://learnbeginner.com/wp-content/uploads/2020/05/0015-1_4MkBJprFSx6GXT4os8b-4g-300x108.png 300w, https://learnbeginner.com/wp-content/uploads/2020/05/0015-1_4MkBJprFSx6GXT4os8b-4g-1024x370.png 1024w, https://learnbeginner.com/wp-content/uploads/2020/05/0015-1_4MkBJprFSx6GXT4os8b-4g-150x54.png 150w, https://learnbeginner.com/wp-content/uploads/2020/05/0015-1_4MkBJprFSx6GXT4os8b-4g-768x277.png 768w, https://learnbeginner.com/wp-content/uploads/2020/05/0015-1_4MkBJprFSx6GXT4os8b-4g-370x134.png 370w, https://learnbeginner.com/wp-content/uploads/2020/05/0015-1_4MkBJprFSx6GXT4os8b-4g-270x98.png 270w, https://learnbeginner.com/wp-content/uploads/2020/05/0015-1_4MkBJprFSx6GXT4os8b-4g-570x206.png 570w, https://learnbeginner.com/wp-content/uploads/2020/05/0015-1_4MkBJprFSx6GXT4os8b-4g-740x267.png 740w" sizes="(max-width: 1185px) 100vw, 1185px" /><figcaption>oops, I am not an array, buddy</figcaption></figure>



<p>That is because</p>



<pre class="wp-block-verse"><code>NodeList</code>&nbsp;object is a list (collection) of nodes extracted from a document.</pre>



<p>So after this the question is &#8220;What can We do?&#8221;</p>



<h4 class="wp-block-heading"><strong>2. What can I do?</strong></h4>



<p>The easiest, fastest way to convert it into an array is just using the es6 spread operator.</p>



<pre class="wp-block-code"><code lang="javascript" class="language-javascript">let rows = document.querySelectorAll('img');
rows = [...rows]</code></pre>



<p>Now, you can start applying all of the array methods to this&nbsp;<code>rows</code></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1400" height="221" src="https://i2.wp.com/learnbeginner.com/wp-content/uploads/2020/05/0016-1_dxLqg6bhRVEyDl9nHzKJwA.png?fit=770%2C122" alt="" class="wp-image-2618" srcset="https://learnbeginner.com/wp-content/uploads/2020/05/0016-1_dxLqg6bhRVEyDl9nHzKJwA.png 1400w, https://learnbeginner.com/wp-content/uploads/2020/05/0016-1_dxLqg6bhRVEyDl9nHzKJwA-300x47.png 300w, https://learnbeginner.com/wp-content/uploads/2020/05/0016-1_dxLqg6bhRVEyDl9nHzKJwA-1024x162.png 1024w, https://learnbeginner.com/wp-content/uploads/2020/05/0016-1_dxLqg6bhRVEyDl9nHzKJwA-150x24.png 150w, https://learnbeginner.com/wp-content/uploads/2020/05/0016-1_dxLqg6bhRVEyDl9nHzKJwA-768x121.png 768w, https://learnbeginner.com/wp-content/uploads/2020/05/0016-1_dxLqg6bhRVEyDl9nHzKJwA-370x58.png 370w, https://learnbeginner.com/wp-content/uploads/2020/05/0016-1_dxLqg6bhRVEyDl9nHzKJwA-270x43.png 270w, https://learnbeginner.com/wp-content/uploads/2020/05/0016-1_dxLqg6bhRVEyDl9nHzKJwA-570x90.png 570w, https://learnbeginner.com/wp-content/uploads/2020/05/0016-1_dxLqg6bhRVEyDl9nHzKJwA-740x117.png 740w" sizes="(max-width: 1400px) 100vw, 1400px" /><figcaption>get me those images that I want!</figcaption></figure>



<h4 class="wp-block-heading">3. Other ways to solve the problem here</h4>



<ol class="wp-block-list"><li>use es6 spread operator<strong>&nbsp;[…arrayLikeObject]</strong></li><li>usees6<strong>&nbsp;Array.from</strong>(arrayLikeObject)</li><li><strong>[].slice.call</strong>(arrayLikeObject)</li><li>use the good old&nbsp;<strong>for</strong>&nbsp;loop, code snippet is below, feel free to copy it, LOL</li></ol>



<pre class="wp-block-code"><code lang="javascript" class="language-javascript">let trueArray = []
for(let i = 0; i &lt; rows.length; i++) {
   trueArray.push(rows[i])
}</code></pre>



<p>If you know any other ways, feel free to leave a comment below!</p>



<div class="wp-block-jetpack-markdown"><p>Thanks for reading! ? If you find this helpful don’t forget to give some claps ?? and feel free to share this with your friends and followers! ?If you have some tips to share, feel free to comment below.</p>
</div>


<script>(function() {
	window.mc4wp = window.mc4wp || {
		listeners: [],
		forms: {
			on: function(evt, cb) {
				window.mc4wp.listeners.push(
					{
						event   : evt,
						callback: cb
					}
				);
			}
		}
	}
})();
</script><!-- Mailchimp for WordPress v4.10.2 - https://wordpress.org/plugins/mailchimp-for-wp/ --><form id="mc4wp-form-8" class="mc4wp-form mc4wp-form-2830 mc4wp-form-theme mc4wp-form-theme-dark" method="post" data-id="2830" data-name="Main Newsletter" ><div class="mc4wp-form-fields"><p>
	<label> 
		<input type="email" name="EMAIL" placeholder="Your email address"  style="max-width: 100%;" required />
	</label>
	<input type="submit" value="Subscribe Now" style="width: 100%;" />
</p></div><label style="display: none !important;">Leave this field empty if you&#8217;re human: <input type="text" name="_mc4wp_honeypot" value="" tabindex="-1" autocomplete="off" /></label><input type="hidden" name="_mc4wp_timestamp" value="1742447210" /><input type="hidden" name="_mc4wp_form_id" value="2830" /><input type="hidden" name="_mc4wp_form_element_id" value="mc4wp-form-8" /><div class="mc4wp-response"></div></form><!-- / Mailchimp for WordPress Plugin -->]]></content:encoded>
					
					<wfw:commentRss>https://learnbeginner.com/the-fastest-way-to-convert-array-like-object-into-js-array/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
