JavaScript Basics in Sinhala


JavaScript Basics cdjdial%smaÜ uQ,sldx.
by Bhathiya Bandara

What is JavaScript ? cdjdial%smaÜ hkq l=ula o@

fjí msgq ieliSug fhdod hkakd uQ,sl fla; l%uh jk HTML (Hyper Text Markup Language) j,g wu;rj wdl¾YKSh fjí ks¾udKlrKh i|yd Client Side Scipting Language ^ fjí msgq n,kakdf.a me;af;ka fla;lrKh & isÿ l< yels l%uhls'
fuh o fla;lrK NdIdjla ^Scripting Language & jk w;r Java. C# jeks fla;lrK NdIdj,g idfmalaIj uDÿ .;s.=K we;a;ls'
JavaScript fla;hka Rcqj u HTML fjí msgq ;=<g we;=,;a lsÍug yels ùu jdishls'
;j o fjk;a fla;lrK NdIdjka fuka fjk u Runtime Environment tlla fyda Interpretation/Compiling wjYH fkdùu o fuys we;s myiqjls'



JavaScript  fhdod.kakd wjia:d ^jdis&

  1. HTML fjí msgq ilikakka yg wjYH uDÿldx. ksmoùfï tool tlla f,i
  2. HTML fjí msgq ;=<g Dynamic Text tl;= lsÍu i|yd 
  3. events j,g l%shd lsÍfï yelshdj fuhg we;
  4. HTML elements  lsheùfï ^ f;areï .ekSfï & yd ,sùfï yelshdj ;sîu
  5. we;=,;alrk Data ^o;a;& hdj;ald,Sk lsÍug yelshdj we;
  6. fjí wvúhg msúfikakd Ndú;dlrk web browser tl l=ula oehs  y÷kd.ekSfï yelshdj we;
  7. cookies iEoSug fhdod.; yel





  

Michael Phelps - Highest Olympic Medal Winner Ever

Michael Phelps - Highest Olympic Medal Winner Ever!


Michael Phelps is not done with high achieving even if his career as an Olympic athlete is over. The American's indefatigable brought him 18 Olympic gold medals, two silver and two bronze – an unprecedented total – and after he scratches a travelling itch he will set himself new objectives.
Phelps is the man who wants to teach the world to swim, who wants to lower his golf handicap, who wants nothing more than to see the sport he has dominated in the past decade continue to grow and grow. He is also not a man who accepts second best, as the rivals who have come and gone can attest. Just now though, Phelps wants to enjoy life outside professional sport.
Michael Phelps celebrates after winning the final Olympic gold medal of his career
Michael Phelps celebrates after winning the final Olympic gold medal of his career. Photograph: Al Bello/Getty Images
"I want to travel a bunch. That's something I've always wanted to do. I've been able to see so many amazing places in the world but I've really never got to experience them. I've seen the pool and hotels, every year over the last 12 years of being in the national team. I'd like to experience some things, whether it's travelling through Europe or going back to Australia and being able to go around Australia or South Africa – something Chad [le Clos] and I were talking about.

"There's a lot of things I want to do for myself just to be able to relax and even though I am retiring and the competitive side of my career is over, there's a lot of things I want to do around the sport. I would like to take it to a higher level than it is right now and continue to grow the sport more and more."
He also has a charitable foundation, aimed at encouraging positive lifestyles for American youngsters. "I'm going to be able to put more time and effort into that and also my summer schools. Being able to teach children how to swim and live healthily is something that's very important to me."
Phelps has won four golds in London, after eight in Beijing and six in Athens. It is also often forgotten he raced in Sydney as a 15-year-old too a fact that further underlines how swimming has been his life since childhood. Phelps could easily swim on and remain competitive on a world level between now and the Rio Games in 2016 but he feels now is the time to leave it all behind.
"Sure, if I wanted to I could still go," he said. "But I'm ready to be done. I'm ready to retire and move on to other things. Whatever route I go down I'm going to have goals. I'm still a very competitive person, so if I go out and practice more at golf I'm going to drop x amounts of strokes. I'm going to have things I'll be able to go for and try to achieve. That's the mentality I have and the competitiveness I have and I think it'll always be with me."
As he prepared to mount the podium in the Aquatics Centre on Saturday night, waiting for The Star-Spangled Banner to play, Phelps turned to his team-mate Brendan Hansen who is joining him in retirement. "And it was strange," Phelps said. "Brendan was like, 'I'm going to belt the words out,' and I said, 'it's going to sound like gibberish if I do it'. As soon as I stuffed up on the podium I could feel the tears start coming. I said to [team-mate] Nathan [Adrian], 'oh no, there they come, it's going to be pretty brutal'. They just started coming. I tried to fight it but I just decided to let it go and whatever happened, happened. I was just taking in these last moments of my swimming career.
"To be able to sit here and say I've done everything I wanted to do in my swimming career is something that's pretty special. That's the only thing I wanted to say when I retired. I wouldn't change anything. I didn't miss anything. I've had the opportunity to do something nobody else has ever done before so I'm very happy with that."