Lately I've been using Resharper and I've enjoyed the experience of using it, but something has intrigued me. At times it suggests that certain variables be declared within some scopes, as in the example below:
var a = 0;
for(var i = 0; i&...
The variable receives a value that is supposed to be an email address, but the doubts arise:
Will it be an email address, a random text, or something else?
Being an email address, is it well formatted?
Assuming a valida_email() f...
Let's say I have the following object:
var obj = {"frutas": 50, "vegetais": 100, "carnes": 150 };
How would I be able to return the key of the highest value item? Example:
obj.maxKey(); // "carnes"
I have tried some functions that trea...
I'm trying to compile a class in java via the command line (cmd), however I can not, the error shown is:
'java is not recognized as an internal or external command, operable program or batch file.
Image of the prompt with the error:...
Since PHP 5.5 was implemented in the Generator language. It can be used inside a function from the keyword yield .
In the Manual , we have an example where one is compared to the function range(0, 1000000) (which theoretically...
I have a page made with bootstrap 3 where I show some fields coming from my DB, now when opening the page I need all fields except for a Iniciar Tarefa to be disabled, the Iniciar Tarefa button will be responsible for enabling the...