able-boots-25487
10/11/2022, 6:29 PMimportant-flower-4633
10/11/2022, 7:28 PMimportant-flower-4633
10/13/2022, 7:02 AMcold-army-17187
10/13/2022, 8:06 PM.on("message", EventHandler)
ושם אני מתחיל לקבל רצף של אירועים וממתין לאירוע שאני ממתין לו, ואז עושה .(off("message", EventHandler
כמובן שאני סוגר הכל בתוך promise יפה.
מה שקורא, שאני מקבל שגיאות:
(node:1) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 EventHandler listeners added to [SystemClass]. Use emitter.setMaxListeners() to increase limit
והשאלה שלי מה לא בסדר, אולי אני לא עושה את זה נכון? אולי אני לא סוגר את האזנה נכון? אולי יש דרך יותר נכונה לעשות את זה?important-flower-4633
10/17/2022, 5:02 PMimportant-flower-4633
10/18/2022, 7:16 AMawait fetch('<https://e3mzk07id6.internal.netfree.link/ping').then(r> => r.text()) === 'pong'
brash-boots-84592
10/18/2022, 8:59 AMbrash-boots-84592
10/18/2022, 8:59 AMable-boots-25487
10/18/2022, 6:10 PMimportant-flower-4633
10/19/2022, 8:28 AMsalmon-minister-74878
10/19/2022, 9:38 AMbrash-boots-84592
10/19/2022, 9:55 AMimportant-flower-4633
10/19/2022, 6:05 PMsalmon-minister-74878
10/19/2022, 6:06 PMsalmon-minister-74878
10/19/2022, 7:08 PMsalmon-minister-74878
10/19/2022, 7:09 PMcolossal-doctor-31446
10/19/2022, 10:21 PMgorgeous-postman-54773
10/20/2022, 10:48 AMcool-sandwich-43253
10/20/2022, 11:36 AMmysterious-artist-10845
10/21/2022, 9:12 AMmysterious-artist-10845
10/21/2022, 9:12 AMgorgeous-postman-54773
10/21/2022, 9:12 AMbrash-boots-84592
10/21/2022, 9:54 AM/*
* author: AshiVered
* date: 26 tishrey 5783
*/
class NumbersCalc
{
public static void main(String args[]) {
/*
* Declaration of the variables
*/
int num1, num2, num3;
num1 = 3;
num2 = 4;
num3 = num2 + num1;
String sucsess = "sucsess";
String fail = "fail";
/*
* Check
*/
if (num3=7) {
System.out.println("num3 is equal to" +num3);
System.out.println(sucsess);
} else {
System.out.println("num3 is equal to" +num3);
System.out.println(fail);
}
}
}
ומקבל את השגיאה הבאה
seven.java:20: error: incompatible types: int cannot be converted to boolean
if (num3=7) {
^
1 error
error: compilation failed
brash-boots-84592
10/21/2022, 9:56 AMmysterious-artist-10845
10/21/2022, 11:21 AMmysterious-artist-10845
10/22/2022, 6:16 PMYYYY-MM-DD
.mysterious-artist-10845
10/22/2022, 6:16 PMnew Date().toISOString().split('T')[0]
זו הדרך שבה אני מגיע לתאריך הנוכחיimportant-flower-4633
10/23/2022, 6:39 AMnumerous-soccer-81333
important-flower-4633
10/23/2022, 7:15 AM