Posts by Nizer • 86 points
3 posts
-
1
votes1
answer45
viewsA: Get Kotlin presets in java
The first problem is that the lambda functions in Kotlin do not return a void itself but a Unit. The Unit is a concrete object, and therefore, when making the call in Java, it is necessary to return…
-
1
votes2
answers43
viewsA: Javascript || Do not display a block depending on the value of an array
Note that in your code, if is being done as if paxAgeNumber is an array (using the [i] to access an element), when in fact, on the top line, the variable is started with an integer value. Therefore,…
javascriptanswered Nizer 86 -
5
votes3
answers1024
viewsA: When and how to use instanceof and typeof operator in Javascript
The typeof operator always results in a string with the primitive object type name. For example, if you execute the following command: var a = typeof 1; The variable a will have the string "number"…