Techradiant

Javascript Logo

What is closure in Javascript?

2 min readIn JavaScript, a closure is a function that has access to the variables and parameters of its outer function, even after the outer function has returned. Closures are created when a function is defined inside another function, and they allow the inner function to retain its access to the variables and parameters of the outer…

Read More
Javascript Logo

What does use strict do in javascript?

< 1 min readThe “use strict” directive is a way to opt in to a restricted variant of JavaScript. It enables strict mode, which is a way to write more secure and efficient code by eliminating certain syntax and behaviors that are potentially error-prone or confusing. When strict mode is enabled, JavaScript will throw more exceptions and will…

Read More

how to add indexes in mysql?

2 min readIndexing is a way to improve the performance of certain types of queries in a database by creating a data structure that allows the database to quickly locate and retrieve the required data. An index is a separate data structure that is created on one or more columns of a table, and it contains a…

Read More

How to find the MySQL my.cnf location?

< 1 min readyour operating system and the installation method used. Here are some common locations where the my.cnf file may be located: On Unix-like systems (including Linux and macOS), the my.cnf file is usually located in the /etc directory, or in the /etc/mysql directory if MySQL was installed from a package. On Windows systems, the my.cnf file…

Read More

what is the Maximum length for MySQL type text?

< 1 min readThe maximum length for the TEXT data type in MySQL is 65535 characters. This is because TEXT data types are stored using a two-byte length prefix that indicates the number of characters in the value. Here is a summary of the different TEXT data types in MySQL and their maximum lengths: TINYTEXT: 255 characters TEXT:…

Read More