What do you want to save?
Add Code snippet
New code examples in category Javascript
-
Krish 2022-05-14 01:06:21
Math.random() javascript
Math.random() // will return a number between 0 and 1, you can then time it up to get larger numbers. //When using bigger numbers remember to use Math.floor if you want it to be a integer Math.floor(Math.random() * 10) // Will return a integer between 0 ... Add solution -
Awgiedawgie 2022-05-14 01:06:06
tab adds tab textarea javascript
document.querySelector('#textarea').addEventListener('keydown', e => { if ( e.key === 'Tab' && !e.shiftKey ) { // execCommand operations are "Cmd|Ctrl+Z"-able // note: execCommand is deprecated and may not work in the future... Add solution -
A-312 2022-05-14 00:47:17
how to add redirec router in angular
import { RoleComponent } from './role/role.component'; import { AppComponent } from './app.component'; import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; const routes: Routes = [ { path: '', re... Add solution
Best helpers
Ranking is empty