Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| function invertirNumero(numero) { | |
| const digitos = Math.floor(Math.log10(numero)); | |
| let resultado = 0; | |
| for (let i = 0; i <= digitos; i++) { | |
| let digito = numero % Math.pow(10, digitos - i + 1); | |
| digito = Math.floor(digito / Math.pow(10, digitos - i)); | |
| digito = digito * Math.pow(10, i); | |
| resultado += digito; | |
| } |
| <!DOCTYPE html> | |
| <html lang="es"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Move</title> | |
| <style> | |
| * { | |
| box-sizing: border-box; |