python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Difference in function declaration within objects JavaScript
What's the difference in declaring functions like this in JavaScript
const sub = {
_unsubscribed: false,
unsubscribe() {
this._unsubscribed = true
},
next(value) {
if (this._unsubscrib...
djoo
Votes: 0
Answers: 0
Date(D) function in PHP Does not work without quotes on xampp
Date(D) function in PHP Does not work without quotes on xampp
In this following code
$D = date(D);
if ($D == Mon) {
week = 1;
$weeks .= "(FIND_IN_SET($week, weeks))";
}
return $weeks...
Swati Bhalla
Votes: 0
Answers: 0
Error with Numpy library SyntaxError: cannot assign to function call
I'm using numpy library to create an array. I ran the following code:
import numpy as np
np.random.random((2,3)) = array([[0.60793904,0.02881965,0.73022145], 0.34183628,0.63274067,0.07945224]])
np.ze...
Lisa Write
Votes: 0
Answers: 1
My code which is calculating sum and average of two numbers returns this error "[Error] ld returned 1 exit status" upon execution and compilation
This is my code. I've read the output log but can't see where the exact error is; I will appreciate if someone can kindly point me to it. The IDE I'm using is Dev C++.
int main(){
int n, i, a, ave...
Samson Royal
Votes: 0
Answers: 1