Facebook
From xxx, 6 Years ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 260
  1.  var pojazd = prompt("podaj markę auta");
  2. //            var przebieg = prompt("podaj przebieg");
  3. //          
  4. //            console.log("pojazd = " + pojazd);
  5. //            console.log("przebieg = " + przebieg);
  6. //
  7. //
  8. //            var txt = "Twój samochód " + pojazd + " ma ";
  9. //
  10. //            pojazd = pojazd.toLowerCase();
  11. //            console.log("pojazd po korekcie = " + pojazd);
  12. //
  13. //            if (pojazd != "" && (pojazd == "opel" || pojazd == "kia")) {
  14. //
  15. //                if (przebieg != "") {
  16. //                    if (przebieg < 100000) {
  17. //                        document.write(txt + "niski przebieg");
  18. //                    } else if (przebieg < 200000) {
  19. //                        document.write(txt + "średni");
  20. //                    } else
  21. //                        document.write(txt + "większy od 200 tys.");
  22. //                } else {
  23. //                    document.write("nie podano przebiegu!");
  24. //                }
  25. //            } else {
  26. //                document.write("Podałeś inną markę");
  27. //            }
  28. //            document.write("<BR>");
  29. //            document.write((10 / 3).toFixed(2));
  30.