امثلة عن التوابع JavaScript Functions
- 2021-03-30
توصيف
مثال عن تابع بسيط بدون بارامترات:
When you click "Try it", a function will be called.
The function will display a message.
مثال عن تابع مع بارامترين:
When you click on one of the buttons, a function will be called. The function will display the argument that is passed to it.
مثال عن تابع يعيد قيمة:
JavaScript Functions
This example calls a function which performs a calculation and returns the result:
مثال عن تابع يحول الحرارة من فهرنهايت إلى سيليسيوس :
JavaScript Functions
This example calls a function to convert from Fahrenheit to Celsius: