Java Script A Harshen Hausa Part 1.


Javascript a sauwake (1)
js shine yaren dayake bayar da damar real programming a shafukan yanar gizo.kafin kafara koyan javascript ka tabbata ka iya html dan haka zai taimakwa fahumtarka js.
Zaka iya kirkirar kanan application kamar calculator a yaren js.
Js yana da matuqar anfani gamaisan ya uya programming.
Kafun mu fara da matakai masu wuya bari mu fara da masu saukin.
Kamar yanda muka sani js ba html bane saboda haka dole ne ka nuna browser(manhajor lilo) cewa zaka zuba mata umurnin js acikin html,ana yin hakane ha hanyar anfani da
<script>tag. Browser tana daukar duk abun daya kasance tsakanin <script type="text/javascript"> da </script>a matsayin code na javasript.
Misalin javascript acikin html shine.
<html><head><title>js duna na farko</title></head><body><script type="text/javascript">alert("Barka da zuwa!");</script></body><html></html></html>
ita kalmar "alert" tana bawa nura umurnin cewa ta alantawa mutun alamar madanna dauke da rubutun ok domin yarda dan yshiga wani sabon shafin yanrgizo.
Java script ma yana buqatar kula kamar java.idan bakasa alert ba zata daukesa a matsayin text ne kawai
Post a Comment (0)
Previous Post Next Post