برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نامconst fname = prompt("لطفاً نام خود را وارد کنید:"); const lname = prompt("لطفاً نام خانوادگی خود را وارد کنید:"); const age = prompt("لطفاً سن خود را وارد کنید:"); # Create an object to send to the server const data = { fname: fname, lname: lname, age: age }; # Send POST request using Fetch API fetch('/test.php', { method: 'POST', headers: { 'Content-Type': 'application/json' # Specifies the type of content }, body: JSON.stringify(data) # Converts data to json format }) .then(response => { if (!response.ok) { throw new Error('Network response was not ok'); } return response.json(); # Expect the JSON reply }) .then(data => { console.log('Success:', data); # Display of success in the console }) .catch((error) => { console.error('Error:', error); # Display the error in the console });
Submitting answers is currently unavailable.
Write a program that receives a number and prints the following figure according to the number received: Number: 55555 4444 333 2 2 1
Write a class called Vehicle that has Model and Color features and has a method called get_info that returns all its features as a strang then write a class called Car from Vehicle ...
Create a link with the following specifications. The phrase link (click here) should be on the code-bezan.ir page Title the phrase (programming exercise) be open but open on the new page
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.