LO1-WEB TECHOLOGIES

JAVASCRIPT

What is Javascript ?


Javascript is a scripting languages, primarly used on the web. It is used to enchance HTML pages and is commonly found in HTML code. 

Advantages
  • Easy to Debug and testinterpreted line by line, so the error are indicated along the line number can  easily be found.
  • Easy to learn  : The syntax of javascript is very easy and person can learn develop dynamic and unattractive websites 
  • Intepreted language : it require no compilation process so no compiler is required, the broswer interprets Javascript as it HTML tags.
Example of a Website

http://cobay.es/en/
run4tiger.com

Code

if(document.getElementById("TextField").value === "Hello"){

output 

<input id="TextField" type="text">
<input onclick="Msg();" value="go" type="button">


MongoDB

what is MongoDB ?

MongoDB is an open source database that uses a document-oriented data model. MongoDB is built on an architecture of collections and documents. Documents comprise sets of key-value pairs and are the basic unit of data in MongoDB.]

Advantages 
  • MongoDB stores data in flexible, JSON-like documents, meaning fields can vary from document to document and data structure can be changed over time
  • MongoDB is free and open-source
  • Rich queries, indexing, and real time aggregation provide powerful ways to access and analyze your data
Example website 

expedia.com


Code


Output 

Rick?
{ "_id" : { "$oid" : "4f964d3000b5874e7a163895"} , "name" : "Rick
Hightower" , "gender" : "m" , "phone" : "520-555-1212" ,
"age" : 42.0}
Diana?
{ "_id" : { "$oid" : "4f984cae72329d0ecd8716c8"} , "name" : "Diana
Hightower" , "gender" : "f" , "phone" : "520-555-1212" ,
"age" : 30}

Diana by object id?
{ "_id" : { "$oid" : "4f984cce72320612f8f432bb"} , "name" : "Diana
Hightower" , "gender" : "f" , "phone" : "520-555-1212" ,
"age" : 30}


Questions 




Comments

Popular Posts