// ================================== // Intro Js | // ================================== // ================================================================== // 1-introduction of JavaScript // // JavaScript is a programming language that adds interactivity to your website. // This happens in games, in the behavior of responses when buttons are pressed or // with data entry on forms; with dynamic styling; with animation, etc. // This course deals with version ES6 of JavaScript. // // ================================================================== // 2. what is javascript? // JavaScript is a scripting, high-level, interpreted programming language. // JavaScript is a programming language that adds interactivity to your website. // JavaScript is a lightweight, interpreted programming language. // JavaScript is client-side and server-side programming language. // JavaScript is an Object-based Scripting Language. // JavaScript is a prototype-based scripting language. // JavaScript is a dynamic scripting language. // JavaScript is a weakly typed scripting language. // JavaScript is a case-sensitive scripting language. // JavaScript is not a compiled language, but it is a translated language. // JavaScript is an open and cross-platform scripting language. // JavaScript is a popular client-side scripting language. // JavaScript is an interpreted programming language. // JavaScript is a text-based programming language. // JavaScript's syntax is loosely based on Java's. // .js is the extension of JavaScript files. // JavaScript is widely used for client-side validation. // Js is most commonly used as a part of web pages, whose implementations allow client-side script to interact with the user and make dynamic pages. // In the world of programming, JavaScript is the most popular language. // // ================================================================== // 3. Where to write javascript code? // We can write Js code in 3 ways: // (i) Inside HTML file (inline) like this: // (ii) Inside HTML file (internal) like this: // (iii) External Js code (inside external file) // // ------------------------------------------------------------------ // Js Inside HTML file // We can write Js code inside HTML file like this: // // and we can write in two ways: // (i) Inside head tag like this:
// (ii) Inside body tag like this: // ------------------------------------------------------------------ // ==================================================================================