diff --git a/Presentation_m2s1_Javascript_fundamentals_1.html b/Presentation_m2s1_Javascript_fundamentals_1.html new file mode 100644 index 0000000..3f44969 --- /dev/null +++ b/Presentation_m2s1_Javascript_fundamentals_1.html @@ -0,0 +1,582 @@ + + +
+ + +JavaScript is the programming language of the web. It runs on browsers, servers (Node.js), and mobile devices. Mastering fundamentals is your first step toward becoming a web developer!
+Below is a simple example of JavaScript changing HTML content dynamically. Click the buttons to turn the light bulb on and off!
+ +JavaScript can change HTML attribute values.
+In this case JavaScript changes the value of the src (source) attribute of an image.
+ + + +
+
+
+ This example uses JavaScript to:
+getElementById('myImage'))src attribute) when buttons are clickedonclick event)This is just a small taste of what JavaScript can do. Throughout this course, you'll learn how to create much more complex and interactive web applications!
+To become a web developer, follow these steps in order:
+ +Create your first web page with the standard markup language for web content.
+Style your web page with beautiful colors, fonts, and layouts.
+Make your web pages dynamic and interactive for users.
+After mastering HTML, CSS, and JavaScript, you can publish your website for the world to see!
+Client-side - How a web page looks
+Hello, Front-End Developer!
+Server-side - How a web page works
+Manages data and business logic
+Full-Stack Developers work with both frontend and backend technologies!
+
+# Open PowerShell as Administrator
+# Navigate to your working directory
+cd Documents
+mkdir javascript-course
+cd javascript-course
+mkdir presentation1
+cd presentation1
+
+# Create your first JavaScript file
+echo "console.log('Hello World!');" > app.js
+
+# Run with Node.js
+node app.js
+
+
+ For quick testing, use jseditor.io - no setup required!
+Open jseditor.io and try this code:
+ +
+// Presentation 1 - Basic JavaScript
+console.log("=== JavaScript Fundamentals ===");
+console.log("Hello World! 🌍");
+console.log("Welcome to JavaScript Programming!");
+
+// Basic calculations
+console.log("2 + 2 = " + (2 + 2));
+console.log("10 * 5 = " + (10 * 5));
+console.log("100 / 4 = " + (100 / 4));
+
+// String concatenation
+console.log("Hello " + "there " + "friend!");
+
+
+ 💡 Tip: The console.log() function prints output to the console.
Create a program that displays your personal information:
+ +
+// Lab Exercise: Personal Profile
+console.log("=== Personal Profile ===");
+
+// Your personal information
+const firstName = "Maria";
+const lastName = "Johnson";
+const age = 22;
+const occupation = "Web Developer";
+const favoriteLanguage = "JavaScript";
+
+// Display the information
+console.log("Full Name: " + firstName + " " + lastName);
+console.log("Age: " + age);
+console.log("Occupation: " + occupation);
+console.log("Favorite Programming Language: " + favoriteLanguage);
+console.log(" ");
+console.log("Nice to meet you! 😊");
+
+// Calculate years until 30
+const yearsUntil30 = 30 - age;
+console.log("Years until 30: " + yearsUntil30);
+
+
+ ✅ Challenge: Add more personal information and calculations!
+
+# Initialize git in your project folder
+git init
+
+# Check the status of your files
+git status
+
+# Add all files to staging
+git add .
+
+# Commit your changes with a message
+git commit -m "Completed Presentation 1: JavaScript fundamentals"
+
+# Push to gitea.techshare.cc (replace with your repo)
+git remote add origin https://gitea.techshare.cc/your-username/js-course.git
+git branch -M main
+git push -u origin main
+
+ 🚀 Next Session: Operators, Arrays, and more data manipulation!
+JavaScript was created around April 1995 by Brendan Eich, who was working at Netscape Communications Corporation.
+ +Brendan Eich was given only 10 days to design and code a working prototype of a programming language that could run in the browser.
+Netscape was in fierce competition with Microsoft and needed to release their browser quickly.
+Create a language that appealed to non-professional programmers, similar to Microsoft Visual Basic's accessibility.
+Initially called LiveScript, it was renamed to JavaScript to capitalize on Java's popularity.
+"Learning JavaScript used to mean you weren't a serious developer. Today, not learning JavaScript means the same thing."
+- Tim O'Reilly, Founder of O'Reilly Media
+In the beginning, JavaScript was designed primarily for:
+It wasn't considered a "serious" programming language by many developers.
+ +jQuery and AJAX were released, making JavaScript much more powerful and easier to use.
+Developers could now easily:
+Google launched Chrome with its powerful V8 JavaScript engine.
+Facebook began driving massive web adoption, requiring more sophisticated front-end capabilities.
+Browsers began exposing powerful APIs to JavaScript:
+This allowed web applications to behave more like native desktop applications.
+Ryan Dahl created Node.js, allowing JavaScript to run on the server.
+This was a revolutionary development because:
+JavaScript now powers:
+JavaScript is the only programming language that runs natively in all web browsers. If you want to create interactive web experiences, you must learn JavaScript.
+JavaScript is relatively easy to start with basic concepts, though it has depth and complexity for advanced development. This makes it accessible for beginners.
+Modern web applications require JavaScript. From simple websites to complex SPAs (Single Page Applications), JavaScript is fundamental.
+There's high demand for JavaScript developers across frontend, backend, and full-stack roles. Learning JavaScript opens doors to numerous career paths.
+Mastering JavaScript can lead to various roles:
+JavaScript was originally named LiveScript, but was renamed to JavaScript for marketing reasons.
+Java was extremely popular at the time, and Netscape hoped the similar name would attract developers.
+Important: JavaScript and Java are completely different languages with different purposes, syntax, and use cases.
+You don't need to know Java to learn JavaScript (or vice versa). They are separate languages with different learning paths and applications.
+A full-stack JavaScript developer can build both client-side (frontend) and server-side (backend) software using JavaScript.
+In addition to HTML and CSS, they work with:
+With JavaScript across the entire stack, developers can:
+From a 10-day prototype to the world's most popular programming language, JavaScript has come a long way.
+ +Created in 10 days by Brendan Eich at Netscape
+Simple scripting for web pages
+Made JavaScript powerful and accessible
+DOM manipulation became easy
+JavaScript broke out of the browser
+Full-stack development became possible
+Web, mobile, desktop, servers, IoT
+Massive ecosystem and community
+By learning JavaScript, you're not just learning a programming language - you're gaining access to:
+JavaScript is your gateway to modern software development!
+