Javascript Handwritten Notes
Javascript Handwritten Notes
[htwl> Ey plore utey pen Eydiv a nureber Scanned with CamScanner| % Functions \ A function 1s a sel}- coudained block ob Slate wed tak pertim a pettaday tase. | Bosically,functoms ae tus types, They ore > pradafined furdions > Usev defined enchous Ly pre defined aunctiong — These ave alse called as global functions, becouse They cam be callid and used ty any part ob a program. > isFink Os Kwually The about. fonction fates tha numeric Value os am adygument and rebar true owby iF he quis cogument results a ferrite numeric else if %eharns false Exampll’-—jspinike (Sho)! 7» TE nelins false > isnancye © Te mien shut slates only Sb ta on gumente is nk a number, cle i nelivas o false satcu. Exampl’ sna (0); > Th rekions true, > pouedaho Te acept, Shing as argument and Comunts | iW ify Sguivalant ~ nunete, Example. panseTak (iow; 3 Tk converts (9 1@02 — porsaploatty: Tr aaceapts String as omgumtule and comme dts ke ih equivalyak locking yalus i Bompl:- parce pleat (1); 3 neo | > eal , ub, it is aed | Te lees ao Sting ay an oyume Te ape evaliting The Shing . Scanned with CamScannerFramplt~ Eyal (2.%8) —) Th melins &. Ls user defined —fanetions to _ hese Juwdens ame difivid by User by va predated bryurdted “ancien”, Cork th these fundions cam have JAaing => Junchon name > Lise of poremelirs > ust de Stalimonts > Relarn ype Sywax funition Jundion — Nera C parawylirs) 14 Stalivarntss Zhtml>
ZATL> Example far feurctions Z/te? Zseripk language =‘ gavaser et” > Vor a a= parseTuk (usindeu prompt L" ext & num") doumenks writin C’ spun xf gtuen he a” sh sqeet co) ouume wh sti | a it e + wl s tvam ne hg e es cubeta); Junction gqusu CK) Scanned with CamScannert | ven 2 | Cz KKEK kK roku ©) 4 Zisemel> 2 theod > 2lhtwl> | function cube CK) | | eS bx Obgects in ova, sexipk t= Uses check -dueubed - comlapts : wohid obsec is noting oq olley autres - ouejos Ta Tm oval which | can, depart We Ta, Tava sonek obseks | deka and cundiont+ once, The gave sedge gehs Space & su sevad fai “Gack obbgacks axe. Stoved - where. tks dunckiont The Jovaseripk Suprortt