Files
kod-yolculugu-atolyesi/fiyat.js
T

17 lines
395 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Fiyat hesaplama — Atölye Dükkânı
const INDIRIM = 25; // yüzde — büyük kampanya (çakışma çözümü: kampanya kazandı)
function sonFiyat(fiyat) {
return fiyat - (fiyat * INDIRIM / 100);
}
const KDV = 20; // yüzde
function kdvliFiyat(fiyat) {
return fiyat + (fiyat * KDV / 100);
}
function kargoluToplam(sepetTutari) {
return sepetTutari + kargoUcreti(sepetTutari);
}