Introduction to JavaScript
ICT Subject Presentation (Week 11)
Presented by: [Your Name]
What is JavaScript?
• English:
• JavaScript is a programming language used to
make web pages interactive and dynamic.
• It runs inside the browser and works with
HTML & CSS.
• Urdu:
• JavaScript ایک پروگرامنگ زبان ہے جو ویب
پیجز کو حرکت اور عمل دیتی ہے۔
HTML vs CSS vs JavaScript
• HTML → Structure (Headings, Text, Images)
• CSS → Style (Colors, Layout, Fonts)
• JavaScript → Behavior (Buttons, Animations,
Actions)
• Urdu:
• HTML ڈھانچہ بناتا ہے، CSS ،خوبصورتی دیتی ہے
اورJavaScript حرکت پیدا کرتی ہے۔
Characteristics of JavaScript
• • Easy to learn and understand
• • Fast and lightweight
• • Runs on all browsers
• • Used for both Frontend and Backend
([Link])
• Urdu:
• تیز اور ہر براؤزر میں چلنے والی زبان۔،آسان
Integrating JavaScript in HTML
• 1. Internal Script:
• <script> alert('Hello!'); </script>
• (Written inside the HTML file)
• 2. External Script:
• <script src='[Link]'></script>
• (Linked from a separate JS file)
• Urdu:
Internal vs External JavaScript
• Internal:
• Code is written directly inside the HTML file.
• Example: <script>...</script>
• External:
• Code is saved in a .js file and linked with
HTML.
• Example: <script src='[Link]'></script>
Conclusion
• English:
• JavaScript adds life to websites. It is one of the
most important parts of ICT.
• Urdu:
• JavaScript ویب سائٹس کو زندہ بناتی ہے اورICT
کا اہم حصہ ہے۔
• Thank You!