Waa maxay JavaScript Programming Language

Inta badan, hadda, waxay ahayd inaan maqalno luqadda barnaamijka ee(programming language) loo yaqaan JavaScript . Aad ayey caan u tahay waxaana inta badan loo adeegsadaa horumarinta mareegaha. Haddi biraawsarkaaga mareegahaagu aanuu taageerin JavaScript ama kordhintu xannibto(extension blocks it) , inta badan shabakadaha aad booqato si fiican uma shuban doonaan.

JavaScript wuu ka duwan yahay Java . Marka luqaddan barnaamijka lagu isticmaalo, internetku wuxuu noqdaa mid isdhexgal iyo firfircooni leh, taas oo markaa, siisa khibrad soo jiidasho leh isticmaalaha. Hadda, dhinaca ugu horraysa ee JavaScript waxay soo baxday intii lagu jiray xilligii browserka Webka ee Netscape Navigator(Netscape Navigator Web) .

Akhri(Read) : Waa maxay Java Programming Language(What is Java Programming language) ?

Intaa ka hor, boggaga shabakadu waxay ka maqan yihiin animation iyo waxyaabaha la qabsiga, laakiin markii JavaScript ku soo dhacday goobta, wax walbaa way isbeddeleen.

Waxaan fahamsanahay in sanado badan, kaliya sacab yar oo biraawsarkaaga webka ah uu taageeray JavaScript , laakiin arrimuhu aad ayey isu beddeleen maanta. Dhammaan daalacashada waaweyn ee shabakada sida Firefox , Chrome , iyo Edge , ayaa si buuxda u taageera luqadda, taas oo ah sababta webku u yahay mid ka jawaabaya maanta marka la barbardhigo 15-sano ka hor.

  1. Haddaba, sidee buu JavaScript u shaqeeyaa?
  2. Waxa uu JavaScript ku sameeyo boggaaga
  3. Sida loogu daro JavaScript boggaaga

Aan si faahfaahsan uga hadalno arrintan.

1] Haddaba, sidee buu JavaScript u shaqeeyaa?

Inta badan, JavaScript waxaa loo yaqaanaa qoraalka dhinaca macmiilka ah. Taas macnaheedu waa, waxay si weyn ugu tiirsan tahay qalabka macmiilka sida tablet-ka ama casriga ah inuu si sax ah u shaqeeyo. Software-ka ku yaal server-ka fog ayaa xogta u soo diri doona qalabka, halkaasna, xogta waxaa lagu soo bandhigay shaashadda iyada oo loo marayo browserka webka.

Hadda, maadaama ay tahay qoraalka dhinaca macmiilka ah, uma baahna server si uu u shaqeeyo. Tusaale ahaan, haddii bogga shabakada mar hore lagu shubay biraawsarka shabakadda, laakiin sababo jira awgood internetku wuu baxayaa isla markiiba ka dib, isticmaaluhu waa inuu awood u yeesho inuu la falgalo shabakada isla sidaas oo kale.

Sida cad, ma awoodi doontid inaad u gudubto bog cusub, kaliya la falgeli xogta mar hore lagu shubay bogga hadda.

Aynu eegno qaar ka mid ah waxyaabaha JavaScript u suurtageliya browserka:

  • Liiska hoos-u-dhaca iyo saamaynta rogrogga
  • Awoodda inuu ku ciyaaro maqal iyo muuqaal
  • Soo rar(Load) macluumaad cusub adoon dib u soo dejin bogga shabakadda
  • Qodobbada bogga firfircoon
  • Oo aan la xusin, Autocomplete

In kasta oo ay tahay luqadda barnaamijyada qoraalka-dhinaca macmiilka, waa inaan sheegnaa inay qabato shaqadeeda ugu wanaagsan marka ay la xiriirto server-ka fog. Asal ahaan(Basically) , qoraalku wuxuu la xiriiraa server-ka gadaal isagoo aan kala joojin waxa isticmaaluhu ku sameynayo goobta hore.

Akhri(Read) : Waa maxay luqadda barnaamijka R(What is the R programming language) ?

2] Waxa uu JavaScript ku sameeyo boggaaga

Qoraalku wax badan ayuu ka qabtaa bogga shabakadda, iyo inta badan, dhinacyada qaar ee bogga uma eka sida ay hadda u wanaagsan tahay JavaScript la'aanteed . Tusaale ahaan, aaladda waxaa inta badan loo adeegsadaa in lagu beddelo HTML iyo CSS qaab firfircoon. Koodhka orodku wuxuu cusboonaysiin doonaa is-dhexgalka isticmaalaha iyada oo loo sii marayo API Model Object Document(Document Object Model API) .

Intaa waxaa dheer, koodka wuxuu ku shaqeeyaa bogga sida ay u muuqato. Hadda, marka ay timaaddo JavaScript , HTML iyo CSS ayaa looga baahan yahay inay marka hore shaqeeyaan, ama waxaa jiri kara khaladaad.

Akhri(Read) : Netbeans IDE waa Luuqad Barnaamijeed oo da' cusub .

3] Sida (How)JavaScript loogu daro boggaaga

Marka ay timaado in lagu daro JavaScript boggaaga(JavaScript) mareegaha, hawshu gabi ahaanba ma adka. Kaliya(Just) faham in ay ku khusayso boggaaga HTML(HTML) si la mid ah CSS oo ay tahay inaad fiicnaato.

Waxaad arkaysaa, CSS waxay isticmaashaa curiye si ay u hirgeliso xaashiyada qaab dibadda ah, iyo

Koodhka gudaha ee JavaScript(Internal JavaScript) : Si aad ugu darto koodka gudaha, fadlan koobbi oo dheji waxa soo socda kadib</head> tag: <script>

// JavaScript goes here

</script>

Ku dar(Add) qoraalka faylka dibadda: Mar kasta oo aad dareento inaad u baahan tahay inaad JavaScript ku darto fayl dibadda ah, waxaanu soo jeedinaynaa beddelka qaybta hadda <script>jirta <script src="script.js" defer></script>.

Sida aad arki karto, kani waa maqaal hordhac ah oo loogu talagalay inuu ku siiyo fikrad waxa JavaScript ku saabsan yahay.



About the author

Waxaan ahay horumariye yaqaan iOS ah oo leh waayo-aragnimo ka badan laba iyo toban sano. Waxaan ka shaqeeyay labada aaladaha iPhone iyo iPad-ka, waxaanan garanayaa sida loo abuuro oo loo habeeyo abka aniga oo isticmaalaya tignoolajiyada Apple ee ugu dambeeyay. Marka lagu daro xirfadahayga horumariyaha aiOS, waxaan sidoo kale khibrad adag u leeyahay adeegsiga Adobe Photoshop iyo Illustrator, iyo sidoo kale horumarinta shabakada qaab-dhismeedka sida WordPress iyo Laravel.



Related posts