What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-01-23 02:05:39
javascript new function as class
// Javascript Function that behaves as class, with private variables function Person(name){ const birth = new Date(); this.greet = () => `Hello my name is ${name}. I was born at ${birth.toISOString()}`; } const joe = new Person("Joe"... Add solution -
Javascript 2022-01-22 21:00:36
Write a JavaScript function called “GCD()” that takes the values from “Number 1“and “Number 2” then calculate the greatest common divisor of the two numbers and show the result as alert.
Write a JavaScript function called “GCD()” that takes the values from “Number 1“and “Number 2” then calculate the greatest common divisor of the two numbers and show the result as alert. Add solution -
Other 2021-11-09 06:12:18
fastspring callback fucntions
Callbacks are JavaScript functions that are performed after another FastSpring Store Builder Library function has finished executing. These callbacks are defined in the Store Builder Library script definition. The callback to be performed are defined in... Add solution -
PHP 2021-11-08 23:50:11
php input onchange
/* You can't execute PHP in the browser. Do an AJAX call or POST to a PHP function on the web server, or write a Javascript function that executes in the browser. */ // html <input name="file" onchange="mainInfo(this.value);" // A... Add solution -
Javascript 2021-11-07 17:39:15
the function tag in js
<html> <p id = demo> </p> <p> this javascript function is returning the product of p1 and p2. <script> function myFunction (p1, p2){ return p1 * p2 } document.getElementById("demo").innerHTML = myFu... Add solution -
Javascript 2021-09-21 23:21:04
google maps api javascript
/* Take look in below steps for integrate javascript google map api We declare the application as HTML5 using the <!DOCTYPE html> declaration. We create a div element named "map" to hold the map. We define a JavaScript function that creat... Add solution
Best helpers
Ranking is empty