You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TheJavascript implementation uses a function named `checkPrime` that takes a single argument `number`.It returns `True` if the number is prime, otherwise, it returns `False`.
46
+
47
+
TheJava implementation uses a function named `checkPrime` that also takes a single argument `int number`.It returns `true` if the number is Prime and `false` otherwise.
48
+
49
+
Java uses `true` and `talse` forboolean values and JavaScript uses `true` and `false`.
50
+
51
+
### Differences
52
+
53
+
**FunctionCalls**:
54
+
-The syntax for calling functions and printing to the console/output is slightly different. Java uses `print()`, whileJavaScript uses `console.log()`.
0 commit comments