Javascript Handwritten Notes
Javascript Handwritten Notes
<é/htwl> Ey plore user pen Eydiv o number Scanned with CamScanner| % Functions \ A function 15 a self- condained block ob Slate wed Trak pertim a peotaday tase. | Bosically ,functoms oe tue types, They ore > pradafined furcions > serv defined nchous Ly pre defined eunctione s— These ave alse called as global -undckions, becouse They cam be calli and used ty any part ob a program. > isFink Os Kwually The about. fonction fates tha numeric Velus os am adygument and mebaeas true owky iF he ghusm cogument results a ferrite numodie else tf %eharns false Bxampll’-—jspinike (Sho)! > TE rekins false > isnancye © Te seins tut slates only ob ta on guimente is nko number, le i nelivas a false getou. Exampl’ sna (0) > Th relies true, > pouedaho Te acept, Shing as argument and Comunts | WE ify Sguivaleant nunete, Example. panseTak (iow; 3 Tk converts (o 1@02 — porsaploatty: Tr caceapts String as argue” and comme dts ke Th equivalyak flocking yalas > i Bxompl:- parce pleak (1); 3 2-60 | > eal , ub, it is aed | Te lees a Sting as an oyume Te qe evaliting The Shing . Scanned with CamScannerFramplt~ Eyal (2%8) —) Th melins &. Ls user defined —fanctions to —_ shese Jundiont ane didfivid by user byw predated tryurdred “ancien”, Cork rh these fundions cam have FAaing => Junction name > Lise of porame lens > ust de Salimonts > Relirn ype Sywlax funition Jundion — erat { parawylirs) ra Stalivarntsy Zhtml>
ZATL> Example fai qfeurctions Z/t a? scrip language =‘ gavaser et” > Vor a a= parseTuk (usindeu prompt L" exlie & num") doumewks writin CO’ spusne xf gtuen he gs” sr sqrt co) oume wh sti | a8 it e + wl s tvam ne he e es cubeta); Junction syusu CK) Scanned with CamScannert | ven ©) | Ct KKEK kK roku ©) 4 Ziseet> 2 theod > 2lhtwl> | function cube CK) | | — be Obgects in ova, soxipk t= Uses check -dueubed - conlapts : wohid obseck is noting oq olhey autres - ouejos Tn Tm oval which | can, depart WW Tn, Tava severe obsecks | deka and cundiont+ once, The gave Some gehs Space i sy sevud fai “Gack olbgecks axe. Stoved - where. is denckiont The Tovaseripk Suprortt