Menu

How to read any attribute value using the element class name using JS?

Using the DOM function we could find the element using class name and then from that search list go to first index and get the required attribute.

document.getElementsByClassName('class_name')[0].getAttribute('id');

SQL queries to perform CURD operations

Standard Query Language is frequently referred to as SQL queries are the statement to create, update and delete the records from the database table in SQL and NoSQL database.

Let's understand the different types of queries that we use to perform operations in the database table. 


SELECT * FROM "user"
WHERE enabled = 'false'


SELECT * FROM "user"
WHERE email IN ('yumfawa48@gmail.com','rashid.jorvee@gmail.com')


UPDATE "user"
SET enabled='true'
WHERE id='sql-tutorial'

What is Fascism?

Fascism is a term that referred to an environment created by people with fascist thought.

Who is fascist

Fascist is one who thinks he/she only have the right to live and use all the natural resources which is available on the earth and the universe, rest of the people who don't fit in their criteria or group has no right to live and have food.

Fascist society

A fascist society is a society where discrimination on the basis of color, race, faith, and sex takes place with the support of law enforcement agencies or government and with little contribution of the judiciary.