Hasta Randevu Sistemi

22-01-2025 , 18:51:12 arjen anasayfa let age=prompt(); if(age>18) { alert("Regular price") } else{ alert("Discount"); } let age=17; if(age>18) { alert("Regular price"); } else{ alert("Discount"); } function check() { let ram=Number(prompt()); let element=document.getElementById('Result'); if (ram>16) { element.textContent='Starting the game...'; } else { element.textContent='PC upgrade needed'; } } let boxValue = document.getElementById('cb1').checked; if (boxValue) { alert("10$"); } else { alert("20$"); } let speed = 70; if (speed < 100) { alert("No ticket"); } else { alert("Traffic ticket"); } alert("Drive with care"); if (age < 18) { if (isStudent) { alert("20% discount"); } else { alert("10% discount"); } else { alert("Regular price"); } } let seats=10; while(seats>0) { console.log("Number of seats left"+seats); seats=seats-1; } counter=0; while(counter<5) { console.log("Message"); counter=counter+1; } let city="Berlin"; let age=42; let isVerified=true; console.log(typeof city); console.log(typeof age); console.log(typeof isVerified);

Paragraph text.

Paragraf metni.

function message() { let msg="welcome!"; alert(msg); } let userName = prompt(duygu); document.getElementById('@duygu').textContent=@duygu;
function processFormData() { let form=document.getElementById('myForm'); let city=form.elements.city.value; let country=form.elements.country.value; insertData(city,country); document.getElementById('city').value=''; document.getElementById('country').value=''; }
function changeStyle() { let body=document.getElementById('body'); let background=document.getElementById('backgorund').value; let color=document.getElementById('color').value; body.style.background=background; body.style.color=color; } console.log(7+3); console.log(10-5); console.log(9/3); console.log(2*3); function { let a="basket"; let b="ball"; alert=(a+b); } console.log(20>30); console.log(40<30); console.log(50>10); function checkTicked() { let box=document.getElementById("c1"); console.log(box.checked); } document.getElementById('p1').textContent='Updated text'; function performAndOperation() { let input1=document.getElementById("input1").checked; let input2=document.detElementById("input2").checked; let result=input1 && input2; alert("Result of AND operation:"+result); } alert(true&&false) alert(false&true) alert(false||true) alert(true||false)