Script Calcular Letra Dni En Javascript

  • Uploaded by: Adrián Espinosa
  • 0
  • 0
  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Script Calcular Letra Dni En Javascript as PDF for free.

More details

  • Words: 92
  • Pages: 1
Calcular letra DNI por Mortuus

Mortuus

<script type="text/javascript"> var letras = ['T', 'R', 'W', 'A', 'G', 'M', 'Y', 'F', 'P', 'D', 'X', 'B', 'N', 'J','Z', 'S', 'Q', 'V', 'H', 'L', 'C', 'K', 'E', 'T']; var numero = prompt("Introduce el numero de tu DNI"); //var letra = prompt("introduce tu letra del dni"); //letra = letra.toUpperCase(); if(numero < 0 || numero > 99999999999999) { alert("El numero introducido no es valido"); } else { var letracalculada = letras[numero % 23]; } document.write("Tu dni es "+numero+"-"+letracalculada); alert("Por Mortuus");

Related Documents

Dni
October 2019 23
Javascript
November 2019 51
Javascript
June 2020 24
Javascript
November 2019 43

More Documents from ""

Calentamiento Global.pdf
April 2020 16
Expo-legislacion.pptx
November 2019 9
December 2019 16
Acordes Y Cancion Help.docx
November 2019 25