
Learn to generate random numbers with Math.random, refine with Math.floor and toFixed, and map 0-1 outputs to 0-100 ranges in JavaScript for Node-RED.
Explore how JavaScript strings work with single quotes, double quotes, and backticks, and learn escaping with backslashes and newline sequences like \n.
Explore boolean values in JavaScript, using true and false and proper lowercase spelling, and learn how symbols create distinct identities; previews undefined and null in upcoming topics.
Build a Node-RED project that converts Celsius to Fahrenheit using a function node and inject node, and display the formatted payload with string concatenation and template literals.
Practice reading and writing Modbus data in Node-RED by connecting to a Modbus server (localhost, port 502), reading holding registers as arrays, and updating values via sliders and dashboards.
Learn numeric array sorting in JavaScript using sort with a minus b for ascending and b minus a for descending, plus faster typed arrays and reverse as an alternative.
Learn to store and retrieve values in a multi-dimensional array using row and column indices, with an update button and row/column/product number variables; previews moving to objects in next video.
Explore building a multi-line data structure by extending project one, using objects and arrays to represent line names, production counts (good and bad), and line health insights.
Explore a beer purchase workflow in Node-RED, using a dashboard with inputs for age and id, flow variables, a function for purchase rules, and else-if logic to approve or deny.
Explore conditional ternary operators as a one-line alternative to if-else for small conditions, with examples like level is low or level is okay, and preview switch statements next.
Create a ten-element array of random numbers from 0 to 100 using Math.random, then filter and log values greater than 50 to the console or payload in Node-RED.
Learn how break and continue control for loops in JavaScript, stopping a loop when a condition is met and skipping specific iterations, with practical Node-RED examples.
Learn to manipulate arrays by moving a blue box to the nearest empty location, update the array values, and visualize before-and-after states while practicing for loops.
Explore how to write and call functions in JavaScript for Node-RED, covering basic syntax, parameters and arguments, arrow functions, scope, and nested functions, with practical examples and exercises.
Design a two-argument function to retrieve a box from a source location and store it in an empty target location. Validate inputs and handle errors to prevent invalid moves.
Create JavaScript functions in Node-RED to analyze arrays, convert Celsius to Fahrenheit and millimeter to inches, and compute overall equipment efficiency from availability, performance, and quality.
Explore array methods like for each, filter, and map to operate on array elements, demonstrating selection, transformation, and logging with practical examples.
Master number methods in JavaScript to control decimals with toFixed, ensure precision, and convert results back to numbers using Number or parseFloat, while checking not a number and finite values.
Explore the exercise solution for Node-RED: generate and log sensor values every second, manage a 100-record data array, compute max, min, and average, and visualize results on a time-based chart.
Are you looking to harness the power of JavaScript within the innovative environment of Node-RED? Whether you're an automation engineer, a developer looking to dive into the Internet of Things (IoT), or an enthusiast eager to explore the intersection of programming and industrial automation, this course is designed for you.
Why JavaScript with Node-RED?
Node-RED, a flow-based development tool for visual programming, has revolutionized the way we interact with hardware and APIs, making it an indispensable tool for automation and IoT projects. JavaScript, with its flexibility and ubiquity, powers Node-RED's functionality, allowing users to create complex flows with minimal effort. Understanding JavaScript is key to unlocking the full potential of Node-RED, enabling you to customize nodes, and functions, and integrate various systems seamlessly.
What You Will Learn:
JavaScript Fundamentals: Start with the basics of JavaScript, including variables, functions, and control structures, ensuring a solid foundation for more advanced topics.
Node-RED Integration: Learn how to apply your JavaScript knowledge in Node-RED, customizing nodes, creating function nodes, and integrating external libraries to extend your flows' capabilities.
Real-World Projects: Apply what you've learned in real-world scenarios, building projects that simulate industrial automation tasks, IoT systems, and more, solidifying your skills through practical application.
Best Practices: Gain insights into coding best practices, debugging techniques, and performance optimization to ensure your Node-RED flows are efficient, maintainable, and scalable.
Who Should Enroll?
This course is ideal for anyone interested in industrial automation, IoT, or looking to expand their programming skills with JavaScript and Node-RED. Whether you're a beginner in programming or an experienced developer new to automation, you'll find valuable insights and skills to take your projects to the next level.
Enroll now and start your path to becoming a Node-RED expert with JavaScript!