Geek Strick
25  novembre     07h54
Compiling to Older Versions of Java Using by Maven
adisharma    Hello Everyone, I have my code written in Java 17. I was wondering if there is a way to compile to older Java versions (8 and onwards). I am using this compiler to run code https: online-java-compiler I have asked this question on quora as well and many folks online...
10  novembre     11h40
Answer for replaceAll is not a function JavaScript Error
fizan    You can not update value again in const. The post Answer for replaceAll is not a function JavaScript Error appeared first on Geekstrick.
20  septembre     05h30
Create Library In Angular 12 Search Highlighter
Rehmaanali    In this tutorial, we will see how to Create a Library In Angular 12. Search Highlighter is what we are going to create throughout this article. If you are not aware of what is an angular library Basically library is created to use some piece of code or you can say functionality to various [&] The...
07  septembre     06h50
How to get properties indicated by given selectors from an object?
Rehmaanali    Consider an object from which we want to retrive properties. const obj earth: level: one: ’soft mud and rocks’ , vibrations: [1, 2, range: ’medium’ ], ; Use [...].map() for each selector, vibrations[2].range .replace() to replace square brackets with dots. Use ...
06  septembre     14h00
How to parse cookies in javascript?
Rehmaanali    In the browser cookies is store in string format containing key-value pairs. So, how to parse a browser Cookie string and return an object of all cookie name-value pairs? separate each key-value pair using String.prototype.split(’;’) Use and String.prototype.split(’ ’) to...
03  septembre     15h13
How to use for loops to break out early in javascript?
Rehmaanali    for loop in modern JavaScript is rarely talked about although it’s only useful in asynchronous operation scenarios. But what breaking out early consider the following example: Matching two array const smallArray [0, 2]; const largeArray Array.from( length: 1000 , ( , i) i); const areEqual ...
How to create a cookie using JavaScript?
Rehmaanali    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...
02  septembre     14h27
How to write a callback function in javascript?
Rehmaanali    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...
28  mai     14h08
SQL Update
Rehmaanali    The post SQL Update appeared first on Geekstrick.
SQL Null Values
Rehmaanali    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 [&] The post SQL Null Values...