how would i subract from a list containing numbers from the top down? ex: listA = {10, 10, 10}, var numbertoSub = 25 listA = {5} numbertoSub = 15 listA = {5, 10}
@KevinB Yvette (Colomb) is just too emotionally attached to StackOverflow. Which is not good for her own (imo)
Already told before (in another room) that she has to keep distance and pulling the woman card is just not productive at all. (frankly she should not have done it)
We can't tell you if it will work or not, yes it might. Try it first, if it doesn't work, do some research. If you can't help yourself, then you can ask for help.
But even if most were, asking "should I put them both" (and not will this work) could also be the result of 2 days of experiemnts, and for confirmation asking to other experts
js interprets 0## as an octal, so 010 is 8, 011 is 9 ect
@Aurelius I have been in yours shoes as well. I did not understood it either. But I did not ask around on places like here. I consulted the docs or even read something like this to comprehend it.
or ask a colleague/teacher/someone that you interact with physically
that is what being an IT dev means: reading, comprehending, using tools to write code.
Is there a null coalescing operator in Javascript?
For example, in C#, I can do this:
String someString = null;
var whatIWant = someString ?? "Cookies!";
The best approximation I can figure out for Javascript is using the conditional operator:
var someString = null;
var whatIWant = someStrin...
1. If Type(x) is the same as Type(y), then do x === y
2. If x is null and y is undefined, return true.
3. If x is undefined and y is null, return true. <----- yours case
@zadders Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
i need a littel help implementing a simple loop , So i have the foreach array as item i create one tr,td,td,tr inside the td i have "Partname", "Serialnumber"and "unit's"
So if i have "partnumber = XPTO" and "units = 2 " i have to insert 2 Serials, so i need 2 inputs(one more row) right?
sorry for asking this here, sense php can't help
and now I've found another solution to yesterday's problem = user manual reload
Is there a way (maybe JavaScript doc) to document the required template of an array orobject. For example, an array must have a length of 5, all integers. Or an Object must have "A","B"... as keys.
@zadders Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
@NoobDEV-GBL I am not an native English speaker, but I do my best to use it correctly. It happens that I make linguistic mistakes (a different thing than typographical errors). You can do the same if you want. We are not going to be a grammar nazi, but if you are writing less understandable sentences, don't be surprised that people is either skipping yours comment or not even taking time to decipher what you wrote.
I intend to create padding fields based on a value of one variable, but the fields are created within a loop, should I check the values of the variable before or during the creation of the fields?
just this morning, I sat at the bus stop, and some van full of hippies and highschoolers stopped and some 16 year old (I think) said "Hey guys what yall doin this morning"
and then she said we could ride with her to the highschool, and 2 of the kids just said "Dope" and agreed to get in a stranger's minivan
Yeah up here in NC, we head to highschool at like 5 am, so Its always dark and cold, plus I live in the far back of the neighborhood, so I have to walk like 10 blocks