When writing a code you should do it so that the time required for your understanding is minimal. This is the most important metric for having readable code and is the foundation of the fundamental readability theorem.
The longer you spend, t...
I need to make an area on the form that the user digitally signs with a touch screen pen to store the signature of the same.
As if he were writing on paper but on screen.
I read about the Canvas but I just learned to make lines, rectangles...
I'm using the bootstrap carousel with caption. Between the slide image and the caption there is a div with the image of an orange triangle. I need the caption to stay above the triangle. I have already used z-index but I can not position this ca...
Can anyone explain the difference between Promises and Observables? I would like to understand the advantages and disadvantages of each. Which is more performative, which applies a best practice for development and etc. Thanks!
I'm developing an application where a form with a series of <select> sends information to a chart loaded via AJAX.
I would like these filters to reflect in the browser url, to make it easier for the user to favor the most commonl...
I have 2 files:
index.html
iframe.html
The file index.html has an iframe ( iframe.html ).
There is a javascript function in the file index.html
function testePai(){
console.log("teste da função...
Assuming I have an array
let arr1 = [
{nome: 'Fulano', idade: 19},
{nome: 'Ciclano',idade: 20},
{nome: 'João', idade: 20},
{nome: 'Maria', idade: 30},
{nome: 'Teste', idade: 52}
]
I have another
let arr2 =...
In Vue.js we can pass descendants to a component as follows:
<meu-componente>
<div>Um descendente</div>
<div>Outro descendente</div>
</meu-componente>
How does this work and what is the relationsh...
On a performance verification site I received the "Use CDN for all static assets" message for my JavaScript files.
What are CDNs and how to implement them?