Category: Uncategorized
-
textContent vs innerHTML
label.textContent = `${option} – R$ ${parseFloat(price).toFixed(2)}`; label.innerHTML = `${option} <br><small>R$ ${parseFloat(price).toFixed(2).replace(‘.’, ‘,’)}</small>`;
-
Types of Scope in JavaScript
Global Scope Variables declared outside any function or block belong to the global scope. They can be accessed from anywhere in the code. <script>var globalVar = “I am global”; console.log(globalVar); // Accessible here function test() { console.log(globalVar); // Accessible inside the function } test();
-
Signin, Login and all authentication flow without third-party packages
Today, we will understand how to create a complete logic flow for authorization and authentication of any type of application. First of all, let’s considerate all the steps envolved in this process, they are: So, now let’s get straight to the point, starting by the Database. Database The main objective of registrations are get data,…