web dev part 2 course 1 Flashcards
no script tag
used when browser doesnt support script tag
self executing function
(function(){})()
which standard is dom
W3C (World Wide Web Consortium) standard.
what is dom
“The W3C Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document.”
The W3C DOM standard is separated into 3 different parts:
Core DOM - standard model for all document types
XML DOM - standard model for XML documents
HTML DOM - standard model for HTML documents
The document object model is the programming interface between HTML or XHTML and JavaScript. The Document Object Model (DOM) is a browser-based interface for applications and scripts to dynamically access and update the content, structure, and style of documents
how many dom levels are there
5-> 0 to 4
Dom model browser include
window,screen,document(html..),navigator,location,history
how to add script-generated HTML to the document.
document.write() function
convert num to string
var a=10;
console.log(a.toString())
S in caps
var total = 10 + 1 +” 3”;
113
var a = new String(“Hello”);
var b = “Hello”; same or not ?
no a is object b is string
on change and on save are eventbinders?
onsave is not
git and github difference
Git is a version control system that lets you manage and keep track of your source code history. GitHub is a cloud-based hosting service that lets you manage Git repositories.
SSH protocol full form
Secure Shell Protocol
what is SSH?
The SSH protocol is a method for secure remote login from one computer to another.
what is a fork
A fork is a copy of a repository
what is pull request
A pull request is the way you request that someone reviews and approves your changes before they become final
git init
When starting out with a new repository, you only need to create it once: either locally, and then push to GitHub, or by cloning an existing repository by using the command “git init”.
git add
“git add” moves changes from the working directory to the staging area.
working directory
A working directory contains the files and subdirectories on your computer that are associated with a Git repository
git status
“git status” allows you to see the state of your working directory and the staged snapshot of your changes
git commit
“git commit” takes your staged snapshot of changes and commits them to the project
git reset
“git reset” undoes changes that you’ve made to the files in your working directory.
git log
“git log” enables you to browse previous changes to a project
git branch
“git branch” lets you create an isolated environment within your repository to make changes
git checkout
git checkout” lets you see and change existing branches
git put
“git merge” lets you put everything back together again