Skip to content

dula2000/JS-From-Beggining

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS-From-Beggining

Slice() - extracts a section of a string and returns it as a new string, without modifying the original string. (have to watch about indexOf method)

logical AND/OR - Same as we use in the codes

DOM- Document Object Model (API) An interface for changing the content of a page

Window-- // window = interface used to talk to the web browser // the DOM is a property of the window

const myButton = document.querySelector("#myButton");

//console.dir(window); //console.log(window.innerWidth); //console.log(window.innerHeight); //console.log(window.scrollX); //console.log(window.scrollY);

//console.log(window.location.href); //window.location.href = "https://google.com"; //console.log(window.location.hostname); //console.log(window.location.pathname);

//myButton.addEventListener("click", () => window.open("https://google.com")); //myButton.addEventListener("click", () => window.close()); //myButton.addEventListener("click", () => window.print());

//window.alert("Hello!"); //window.confirm("Press OK to coninue!"); /* let age = window.prompt("Enter your age"); if(age < 18){ window.alert("You must be 18+ to visit this site"); window.close(); } */

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published