All Questions

1
answer

How does the 'parseFloat ()' function work?

I wanted someone to explain to me how this function works. For example: What's the difference: var valor1 = 50; var valor2 = 40; var result = valor1 + valor2 To: var valor1 = 50; var valor2 = 40; var result = parseFloat(val...
asked on 20.03.2014 / 22:12
2
answers

What is the difference between angular.extend and angular.merge?

In angular, to extend an object, I usually use 'angular.exted var obj = {nome: "wallace"} angular.extend(obj, {idade: 26}) Result: Object {nome: "wallace", idade: 26} However, I noticed that when using angular.merge , the result...
asked on 10.10.2016 / 14:09
2
answers

Variable of foreach loop

When we use a foreach loop, does the local variable we create to receive the content of the list in question pass by value or reference? Ex: foreach (var item in listItems) { //TODO } Does item receive content by value o...
asked on 24.08.2017 / 16:31
2
answers

How does XOR work for two binaries with more than one digit?

I've learned that the XOR operator works as OR Exclusive , meaning the end result is only 1 when only one of the operators is equal to 1 . The truth table illustrates this well: Myquestionis:howdoestheXORoperatorworkwithnon-1-bitnum...
asked on 16.05.2017 / 22:46
3
answers

How to find the occurrence of equal integer values in a vector?

I need to find age frequency in a vector. I know how to do this when the vector is small, but not when it is large. Consider the following vector: int[] idade = {15,18,15,20,16,30,18,45,43,14,25,16,20}; For this vector, I could do a sequent...
asked on 06.09.2018 / 07:37
2
answers

Builder and inheritance in R

It's a theoretical question, but it might help to understand the programming logic in r . What is a constructor in the r language? What is its use? What is and how inheritance works in r ? How to identify the inhe...
asked on 08.11.2018 / 14:56
3
answers

Run VBA code from text file

I have a code in VBA that makes a query to the database and saves it to a text file, but to execute this script I have to open Excel and execute macro , this process has to be done minute in a minute because I need informatio...
asked on 02.04.2014 / 03:31
2
answers

Doubt about @media

I made the front end of a site where your main layout was 1920px and I'm adapting to other screens, using: @media (min-width: 0px) and (max-width: 1920px) {} I saw that IE8 is not working, is there any alternative to work around this?     
asked on 21.02.2014 / 20:39
2
answers

Format cash value while typing with pure javascript

There are several questions in the OS about formatting currencies, but most of them are not formatted while a number is typed correctly. How can I format the numbers as you type, passing in these cases below? For example (input > output):...
asked on 29.09.2017 / 00:05
1
answer

Should we use all variables as private?

Should we always use the attributes of a class as private? What do private variables help prevent? How do you decide whether a particular property should be private or not? CASE, by default, each field is private, so why are there public da...
asked on 04.05.2017 / 03:44