![]() Get a certificate on successful completion of the course.Boost your hireability through innovative and independent learning.Build a server using the core modules in Node.js.Create some basic interactive websites using Node.js.Learning OutcomesĪfter completing this course, you will be able to: You will also learn to install a Node process manager and even connect a domain name. Finally, you will learn to deploy your Node.js and Express application to the Digital Ocean. In addition to this, you will get a complete explanation about Node Packaged Modules (NPM), and you will also learn to create a package.json file using "npm init". Then you will learn to build a server that serves static HTML pages from the app directory. After that, you will learn how to install and configure MongoDB on to a Windows machine. In this course, you will first learn to install Git Bash and Node.js on to a Windows 7 machine. querySelector ( '.btn' ) // course in NodeJS is designed in such a way that you can understand the fundamentals of NodeJS. querySelector ( '.items' ) // to delete the ul // ul.remove() // to delete the last ul // ul.lastElementChild.remove() // ul.firstElementChild.textContent = 'Hello' // ul.children.innerText = 'Brad' // ul.lastElementChild.innerHTML = 'Hello' const btn = document. getElementsByTagName ( 'item' )) // Select and loop through const items = document. ![]() getElementsB圜lassName ( 'item' )) console. They returnsa HTML collection which you can't use array methods on. querySelectorAll ( '.item' )) //// getElementsB圜lassName and getElementsByTagName are available but are older and less used. It returns a NodeList which you can run array methods on. querySelector ( 'h1' )) // Multiple element selectors //// querySelectorAll is used for selecting multiple classes. log ( form ) //// querySelector works like JQuery for selecting classes console. getElementById ( 'my-form' )) const form = document. alert ( 1 ) alert ( 1 ) // Single element selectors //// If there is more than one element it will only select the first one. The window object is the parent object of the browser. // In the browser you have a window Object. ![]() It is the tree structure of your whole document including your HTML tags. DOM //// The DOM is the document object model. indexOf ( 'oranges' )) Object LiteralsĬonst x = 11 // using = does not match data types, only matches values if ( x = 10 ) console. isArray ( 'fruits' )) // Find the index of something in an array console. log ( fruits ) // Check to see if something is an array console. ![]() log ( fruits ) // Remove the last item in an array fruits. log ( fruits ) // Inserting data to the beginning of an array fruits. log ( fruits ) // Inserting data to the end of an array fruits. const fruits = // Inserting data to a specific location in an array fruits = 'grapes' console. (Typescript, a superset of JavaScript is statically typed) // Arrays are 0 based, so the first position is always 0. const fruits = // console.log(fruits) // console.log(fruits) // JavaScript is not statically typed. Arrays - ariables that hold multiple values // const numbers = new Array(1,2,3,4,5) // console.log(numbers) // const fruits = // console.log(fruits) // In JavaScript, you can have multiple data types in an array. Script tags can be inline with HTML or referenced in a separate fie.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |