Sign in

  1. Truthy or Falsy Value: If we declare a number type variable and set a value that will be truthy conditionally if it’s not a zero! Every word is truthy including white space other than empty strings. But an empty array would be a truthy value. When a variable is declared but no value is assigned to it then it would be undefined. That means if we don’t define any value of a variable, javascript will count it as falsy value. If we set the value of a variable as null that would also be a falsy value. …

  1. It’s a Library: React.js isn’t a framework like Angular or Vue. It’s a library focused on User Interfaces. It’s basically based on components. Currently React.js is the most popular library used in mordern Front End Devopment.
  2. JSX: JSX means JavaScript XML. It is used to write HTML code in React.js syntax. It makes the thing easier to write HTML in React.js. You can just use curly braces to use JSX in React code.

10 Things to Know About JavaScript String

charAt(): charAt() is used to get the exact word in the desired index number of a string. For example if we say var river = “jamuna”; console.log(river.charAt(3)) it will show “u” as output.

React Particle.js

Today, I’m going to show you how to use particle.js in your react app. First of all, you have to go to Particle.js and then apply your desired styles from the right sidebar. and then click on Download current config (json). After that create a new react application and install particle.js using npm install particles.js now create a component named Particle.js and use import Particles from 'react-particles-js'; on top! then paste the properties from Downloaded json file inside Particle tag. Here is the sample: <Particles
polygon: {
enable: true,
type: 'inside',
move: {
radius: 10
url: 'path/to/svg.svg'
}} />

To use custom style then use style={{}} tage before the closing tag of Particle. Example:

style={{width: '100%',

background: `#000000`}}

So, now enjoy the amazing background of your website!

Md. Abu Bakar

Programmer || Web Developer || Learner || Practitioner

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store