What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-28 00:32:02
Prime number function Js
// This seems to be the most common and comprehensive means // of implementing a 'is a number a prime function' in javascript // if you would like t0 learn more complex , but efficient algorithms. // Visit the link below // https://stackoverflow.com/que... Add solution -
Javascript 2021-09-22 13:00:02
how to create a mixed array in javascript
The array in JavaScript can be created by using var keyword followed by array name as shown below: var NumArr = [1,2,3,4,5]; You can create JavaScript array with mixed data types as well, for example, array containing both numbers and strings: var MixA... Add solution -
Javascript 2021-09-19 07:15:02
math.js
math in Javascript // finding absolute value of a number var number = -8; let output = Math.abs(number); console.log(output); var num =6; nums = Math.abs(num); console.log(nums); // finding ceil(khali upre di tanbo) of a number var mynumber = 9.59; let... Add solution