SHARE
TWEET

Untitled

a guest Dec 3rd, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="pl-PL">
  3.  
  4. <head>
  5. <script>
  6. /* var tab=new Array();
  7.     var imie=prompt("Podaj imie","");
  8.     var nazwisko=prompt("Podaj nazwisko","");
  9.     var wiek=Number(prompt("Podaj wiek",""));
  10.     var klasa=Number(prompt("Podaj klase",""));
  11. tab ["imie"]=imie;
  12. tab ["nazwisko"]=nazwisko;
  13. tab ["wiek"]=wiek;
  14. tab ["klasa"]=klasa;
  15. for(key in tab) {
  16.     document.write(key+": "+tab[key]+"<br>");
  17. }
  18. */
  19.     var tab=new Array();
  20.     tab ["JEDEN"]="I";
  21.     tab ["PIĘĆ"]="V";
  22.     tab ["DZIESIEĆ"]="X";
  23.     tab ["PIĘĆDZIESIĄT"]="L";
  24.     tab ["STO"]="C";
  25.     tab ["PIĘĆSET"]="D";
  26.     tab ["TYSIĄC"]="M";
  27.     for(key in tab) {
  28.     document.write(key+": "+tab[key]+"<br>");
  29.     }
  30.     document.write("<br>")
  31.     document.write("<br>")
  32.     document.write("<br>")
  33.     var tab1=new Array();
  34.     tab1 ["Czerwony"]="Red";
  35.     tab1 ["Zielony"]="Green";
  36.     tab1 ["Niebieski"]="Blue";
  37.     for(key in tab1) {
  38.     document.write(key+": "+tab1[key]+"<br>");
  39.     }
  40.     var kolor=prompt("Podaj kolor","");
  41.     var NIE = false;
  42.     for(key in tab1){
  43.         if(kolor==key) {
  44.             document.write(tab1[key]);
  45.             NIE=true;
  46.         }
  47.     }if(NIE == false){
  48.         document.write("ERROR!");
  49.     }
  50.    
  51.    
  52.      
  53. </script>
  54. </head>
  55.  
  56. <body>
  57.    
  58.     <header></header>
  59.     <main></main>
  60.     <footer></footer>
  61.    
  62. </body>
  63.  
  64. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top