All Questions

3
answers

How to verify undefined correctly in Javascript

What is the best way to check if an element / variable is undefined in Javascript? I have already seen some examples using variavel === undefined and others using typeof variavel == "undefined" .     
asked on 04.08.2015 / 23:26
2
answers

How does the "for" inline command work?

I did a question regarding a Python algorithm, but in resolution of the user Anderson Carlos Woss he used a type of% inline that I had never seen and that left me confused. Here is the code snippet corresponding to for : groups...
asked on 27.09.2017 / 13:54
2
answers

How to do a http redirect to https

Well there must already be a question very similar to this in stackoverflow. But before marking as a duplicate, I have an expecification that I did not find any "equal" question that I'm going to do. Well I intend it is as follows: I ha...
asked on 23.07.2016 / 06:28
2
answers

What is asynchrony?

In a question about using or not using Node Js , I ended up giving an explanation of what is asynchrony . And it seems that the community would generally benefit from a formal explanation of What is asynchronism after all? Despite havin...
asked on 19.04.2016 / 19:42
2
answers

How can I check if a string contains another in Javascript?

I would like to check if a string contains another, as if it were a String.contains() method but apparently there is no method that does this. Does anyone know of a similar method that does the same thing?     
asked on 30.01.2014 / 11:35
3
answers

Back to Top

I need to have a fixed icon on the page in the lower right corner of the screen. By clicking this icon it returns to the top of the page, making Scroll scroll to the top of the page. Can anyone help me? I'm a beginner and I have a hard...
asked on 28.08.2014 / 20:20
2
answers

Calculate difference between dates

I need to calculate the difference between the date of registration and the current date, if it is greater than 6 months, return Boolean. I am registering the bank on the date of registration as follows: public static final String DATE_FORMAT_...
asked on 15.11.2015 / 16:08
3
answers

C ++ - What's the difference between using fixed types of C ++ and typedef of a type?

A few days ago studying emulation I came across a stack overflow question in English on the emulation of CHIP8, and one of the responses told me not to use C arrays such as int i[12] instead of using std::array to be a fixed type,...
asked on 12.11.2018 / 12:03
3
answers

What are the allowed elements within the P tag?

I've been through a few issues, and I could still see in this answer that the <p> tag does not accept any element as a child. It seems that there are exceptions to some tags, that is, they can be added within a <p>...
asked on 10.07.2018 / 18:16
4
answers

Multiple includes bad for performance?

If I use too many includes on my page will it slow down or something like that?     
asked on 07.05.2014 / 13:42