Professional Documents
Culture Documents
Text
Text
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dr. S. Ramanujan</title>
</head>
<body>
<main id="main">
<div class="header">
</div>
<div id="img-div">
<figcaption id="img-caption">Dr. Srinivasa Ramanujan, in the middle, with fellow Scientists, his
contributions were to the fields of mathematical analysis, number theory, infinite series, and continued
fractions.</figcaption>
</div>
<div id="tribute-info">
<div>
<ul>
<li><span>1892</span> - enrolled in local school, his family enlisted a local constable to make
sure he attended school.</li>
<li><span>1897</span> - passed his primary examinations in English, Tamil, geography, and
arithmetic with the best scores in the district. That year, Ramanujan entered Town Higher Secondary
School, where he encountered formal mathematics for the first time.</li>
<li><span>1906</span> - Ramanujan failed his Fellow of Arts exam in December 1906 and
again a year later. Without an FA degree, he left college and continued to pursue independent research
in mathematics, living in extreme poverty and often on the brink of starvation.</li>
<li><span>1913</span> - Received a letter from Hardy expressing interest in his work, adding
that it was "essential that I should see proofs of some of your assertions". He refused to leave his
country to "go to a foreign land".</li>
<li><span>1914</span> - Traveled to England by ship, leaving his wife to stay with his parents
in India. Hardy had already received 120 theorems from Ramanujan in the first two letters, but there
were many more results and theorems in the notebooks. Hardy saw that some were wrong, others had
already been discovered, and the rest were new breakthroughs. Ramanujan left a deep impression on
Hardy and Littlewood. Littlewood commented, "I can believe that he's at least a Jacobi", while Hardy said
he "can compare him only with Euler or Jacobi."</li>
<li><span>1918</span> - was elected a Fellow of the Royal Society, the second Indian
admitted, after Ardaseer Cursetjee in 1841. At age 31, Ramanujan was one of the youngest Fellows in
the Royal Society's history. He was elected "for his investigation in elliptic functions and the Theory of
Numbers." On 13 October 1918, he was the first Indian to be elected a Fellow of Trinity College,
Cambridge.</li>
</ul>
</div>
<footer>
<h3>If you have time, you should read more about this incredible human being on his <a
id="tribute-link" href="https://en.wikipedia.org/wiki/Srinivasa_Ramanujan" target="_blank">Wikipedia
entry</a>.</h3>
</footer>
</div>
</main>
</body>
3Rd.
<!DOCTYPE html>
<html><head>
</head>
<body>
<nav id="navbar">
<header>JS Documentation</header>
<ul>
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
</nav>
<main id="main-doc">
<header>Introduction</header>
<article>
<p>
JavaScript is a cross-platform, object-oriented scripting language.
them.
</p>
<p>
</p>
<ul>
<li>
</li>
<li>
server.
</li>
</ul>
</article>
</section>
<article>
<ul>
<li>
(WWW).
</li>
<li>
</li>
</ul>
</article>
</section>
<article>
<p>
does not have Java's static typing and strong type checking.
JavaScript follows most Java expression syntax, naming conventions
and basic control-flow constructs which was the reason why it was
</p>
<p>
</p>
<p>
have to declare all variables, classes, and methods. You do not have
</p>
</article>
</section>
<header>Hello world</header>
<article>
To get started with writing JavaScript, open the Scratchpad and write
your first "Hello world" JavaScript code:
greetMe("World");
</code>
Select the code in the pad and hit Ctrl+R to watch it unfold in your
browser!
</article>
</section>
<header>Variables</header>
<p>
</p>
<p>
"A" through "Z" (uppercase) and the characters "a" through "z"
(lowercase).
</p>
<p>
</p>
</section>
<section class="main-section" id="Declaring_variables">
<header>Declaring variables</header>
<article>
<p>
</p>
<p>
variant.
</p>
<p>
</p>
</article>
</section>
<header>Variable scope</header>
<article>
<p>
</p>
<p>
function (or global scope) that the block resides within. For
example the following code will log 5, because the scope of x is the
</p>
<p>
ECMAScript 2015.
</p>
not defined</code>
</article>
</section>
<header>Global variables</header>
<article>
<p>
pages the global object is window, so you can set and access global
</p>
<p>
iframe as parent.phoneNumber.
</p>
</article>
</section>
<header>Constants</header>
<article>
<p>
You can create a read-only, named constant with the const keyword.
</p>
<code>const PI = 3.14;</code>
<p>
</p>
<p>
The scope rules for constants are the same as those for let block
</p>
<p>
</p>
<code>// THIS WILL CAUSE AN ERROR function f() {}; const f = 5; // THIS
//statements }</code>
"otherValue";</code>
</article>
</section>
<header>Data types</header>
<article>
<ul>
<li>
<ul>
<li>
</li>
<li>
</li>
<li>Number. 42 or 3.14159.</li>
<li>String. "Howdy"</li>
<li>
</li>
</ul>
</li>
<li>and Object</li>
</ul>
Although these data types are a relatively small amount, they enable
functions are the other fundamental elements in the language. You can
</article>
</section>
<header>if...else statement</header>
<article>
<p>
You may also compound the statements using else if to have multiple
</p>
statement_last; }
</code>
statement_2_runs_if_condition_is_true; } else {
statement_3_runs_if_condition_is_false;
statement_4_runs_if_condition_is_false; }</code>
glancing over the code. For example, do not use the following code:
</article>
</section>
<header>while statement</header>
<article>
false, statement within the loop stops executing and control passes to
<p>
</p>
<p>
</p>
Example:
<p>
</p>
<p>
With each iteration, the loop increments n and adds that value to x.
</p>
<ul>
</ul>
<p>
</p>
</article>
</section>
<header>Function declarations</header>
<article>
<ul>
<li>The name of the function.</li>
<li>
separated by commas.
</li>
<li>
curly brackets, { }.
</li>
</ul>
<p>
square:
</p>
<p>
The function square takes one argument, called number. The function
</p>
<p>
</p>
</article>
</section>
<header>Reference</header>
<article>
<ul>
<li>
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide"
target="_blank">MDN</a>
</li>
</ul>
</article>
</section>
</main>