Rehmaanali

Rehmaanali

Founder Of Geekstrick. Full-Time Software Developer, Expertise in Frontend Development. Conversant with - Angular, React, NodeJS, and MongoDB, MySQL, Postgres,HTML+CSS+JS, CypressIO.

How to create a cookie using JavaScript?

geekstrick on September 3, 2021 🔥 1405 views

The simplest way to create a cookie is to assign a string value to the document.cookie object, for example- document.cookie = “key1 = value1; key2 = value2; expires = date”; // Example var now = new Date(); now.setTime(now.getTime() + 1 * 3600 * 1000); //set cookies to expire in 1 hour document.cookie = `${key} = […]

snippets

How to write a callback function in javascript?

geekstrick on September 2, 2021 🔥 992 views

A callback function is a function that is passed to another function as an argument and is executed after some operation has been completed. for example of a simple callback function that logs to the console after some operations have been completed. function extendArray(arr, callback) { arr.push(100); // then execute the callback function that was […]

snippets

SQL Update

geekstrick on May 28, 2021 🔥 875 views
lesson

SQL Null Values

geekstrick on May 28, 2021 🔥 774 views

The SQL NULL value means a field with no value present in it. What is a SQL NULL Value? If a field in a table is optional in other words if it’s not mandatory, it is possible to insert a new record or update a record without adding a value to this field. Then, the […]

lesson

SQL Insert Into

geekstrick on May 26, 2021 🔥 1021 views

The SQL INSERT INTO statement is used to insert new records in a table. SQL INSERT INTO Statement There are two possible ways to insert data into the table using The INSERT INTO statement. Syntax Specifying both the column names and the values to be inserted: INSERT INTO table_name (column_1, column_2, column_3) VALUES (value_1, value_2, […]

lesson

SQL Auto Increment

geekstrick on May 26, 2021 🔥 1198 views

The SQL AUTO INCREMENT keyword allows a unique number to be generated automatically whenever a new record is inserted into a table. SQL AUTO INCREMENT Field This is often the primary key field that we would like to create automatically every time a new record is inserted. Syntax for MySQL The following SQL statement defines […]

lesson

SQL Order By

geekstrick on May 25, 2021 🔥 836 views

The SQL ORDER BY keyword is used to sort the result-set in ascending or descending order. SQL ORDER BY Keyword The ORDER BY keyword is used to sorts the records by default it sorts in ascending order. To sort the records in descending order, use the DESC keyword. To sort the records in ascending order, […]

lesson

Easily Translate Angular 12 App Using ngx-translate

geekstrick on May 24, 2021 🔥 117732 views

Code and Demo This tutorial will see how we can Easily Translate the Angular 12 App Using the library Angular 12 with ngx-translate The internationalization (i18n) library for Angular ngx-translate: It is an internationalization library for Angular. It will let you define translations for your content in different languages and you can switch languages easily. […]

post

SQL And, Or & Not

geekstrick on May 23, 2021 🔥 888 views

The SQL AND, OR & NOT Operators can be combined with the WHERE clause and used. These operators are usually used if you have multiple conditions to be checked for filtering out the data. The SQL AND, OR and NOT Operators The AND and OR operators are used to filter records based on more than […]

lesson

SQL Where Clause

geekstrick on May 22, 2021 🔥 1041 views

The SQL WHERE Clause is used to filter out the records. This Query allows you to add a condition that will return a resultset with that matching condition. SQL WHERE Clause You can use the WHERE clause not only in SELECT statements but also you can use in UPDATE, DELETE, etc. Syntax SELECT column_1, column_2 […]

lesson