All Posts


To check if a string is null or empty or undefined use the following code snippet if(!emptyString){ // String is empty }

In SQL server, To write if then else in SQL select query we can use SELECT CASE statement (In all versions), SELECT IIF logical …

To create GUID or UUID in JavaScript we can use Math.Random() or ES6 crypto API getRandomValues method.GUID or UUID generated by …

In javascript, we can check if an object is empty or not by using JSON.stringify, Object.keys (ECMA 5+),Object.entries (ECMA 7+)

Javascript replace method, replaces only the first occurrence of the string. To replace all occurrences of a string in Javascript use …

To check if a Javascript String Contains a substring or not, we can use 7 different Javascript methods as listed in below table.

In Oracle, to rename a column in a table, use ALTER TABLE RENAME COLUMN statement

To delete columns in Oracle use ALTER TABLE…DROP COLUMN statement query. Dropping columns in oracle can be done in 2 ways …

We can use user-select property in CSS to disable text selection highlighting in HTML pages.It is not a standard feature, but available …

JavaScript introduced two new methods flat(),flatMap() to flatten array of arrays into single one dimensional array.