What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-22 16:24:11
create dynamic element in javascript
<!DOCTYPE HTML> <html> <head> <title> How to dynamically create new elements in JavaScript? </title> </head> <body> <h1 style="text-align:center; color:green;"> GeeksForGeeks </h1>... Add solution -
Javascript 2021-10-22 04:41:08
! before variable javascript
// ! before a boolean variable will reverse the value: var test = true; console.log(test); // True console.log(!test); // False // In JavaScript, every value has an inherent boolean value. // If you use ! on a string, for instance, it will convert the va... Add solution -
Javascript 2021-10-21 15:25:12
javascript use css custom properties
Values in JavaScript To use the values of custom properties in JavaScript, it is just like standard properties. // get variable from inline style element.style.getPropertyValue("--my-var"); // get variable from wherever getComputedStyle(element... Add solution -
Javascript 2021-10-21 01:04:05
javascript find prime number
// 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-10-19 17:40:14
today tomorrow day after tomorrow button html and javascript
const tomorrow = new Date() // add 1 day to today tomorrow.setDate(new Date().getDate() + 1) console.log(tomorrow) const dayAfterTomorrow = new Date() // add 2 day to today dayAfterTomorrow.setDate(new Date().getDate() + 2) console.log(dayAfterTomorrow)... Add solution
Best helpers
Ranking is empty