Skip to main content

Posts

Showing posts from May, 2020
    JAVASCRIPT COURSE CONTENT 1. INTRO TO JAVASCRIPT (1995-10 Days) Netscape team member Java != JavaScript (LiveScript) Initial Netscape, IE and now all the browsers Anybody can learn Basic HTML knowledge is a better option. Text Editor, Browser (Console) Case Sensitive; Camel Case 1.Difference between   Scripting & Programming Language   (JS scripting or programming------.> Wikipedia 2.Difference between Client   End & Server End Programming/Scripting 2. WHY NEED TO BE MAINTAINED AT EXTERNAL FILE We can avoid the messy look Perform Better & Faster Body Part (at least some content start to display on browser immediately) Head Part (Analytical tariff will be easy part) Head /Body/after Body/After Html end àwhich is best y? <script> </script> <noscript> </noscript> 3. PRINTING METHODS IN JAVASCRIPT Console.log() document.write() alert (“ “) prom...
The area of an equilateral triangle is ¼(√3a 2 ) where "a" represents a side of the triangle. You are provided with the side "a". Find the area of the equilateral triangle. function   sqrt () { var   a = document . getElementById ( "a" ). value ; b =  Math . sqrt ( 3 ); c =( 1 / 4 )* b * a * a ; console . log (  "Area =" + c )}
You are given with Principle amount($), Interest Rate(%) and Time (years) in that order. Find Simple Interest. Print the output up to two decimal places (Round-off if necessary).(S.I. = P*T*R/100) function   mul () { var   a = document . getElementById ( "a" ). value ; var   b = document . getElementById ( "b" ). value ; var   c = document . getElementById ( "c" ). value ; var   d  = b / 100 ; var   e = a * d * c ; console . log ( "SI =" + e )}
  You are provided with the radius of a circle "A". Find the length of its circumference. Note: In case the output is coming in decimal, roundoff to 2nd decimal place. In case the input is a negative number, print "Error". function   coc () { var   r = document . getElementById ( "num1" ). value ; var   pi = 3.1415 ; var   Circumference =( 2 * pi * r ); if  ( r >= 0 ) console . log ( Circumference ); else console . log ( "Error" )}