JavaScript Arrays 2 Downloadable Source Code Guides code examples

Clear Array of Duplicates and empty values const arr = [‘Laurence’,’Jack’,’Jane’,”,,,,’Sam’,’Laurence’,’Jack’,’Jane’,”,null,false,undefined,0,’Sam’]; console.log(arr); const arr1 = [… new Set(arr)]; console.log(arr1); const arr2 = arr.filter(Boolean); console.log(arr2); const arr3 = [… new Set(arr.filter(Boolean))]; console.log(arr3); How to loop through an array const arr = [‘Laurence’,’Linda’,’Joe’,’Jane’]; console.log(arr); console.log(‘****FOR’); for(let i=0;i<arr.length;i++){    console.log(arr[i]); } console.log(‘****WHILE’); let i=0; while(i<arr.length){    console.log(arr[i]);    i++; } console.log(‘****ForEach’); … Read more

AJAX local request to JSON file JavaScript Fetch JSON locally setup and source code lesson

Get the full course at https://www.udemy.com/course/ajax-javascript-json/ Make an AJAX request to local JSON file You must use the http protocol to do an AJAX request to the json file. Suggested editor is https://code.visualstudio.com/ Set up Local server within Visual Studio Code Use of live server is https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer Do not use the file: protocol to make … Read more

How to Check for overlap Between Two Page elements Colission Detection

Check out the Collision Interactive at Commonly in Games when page elements are moving, there needs to be a way to check if overlap has occurred. There is a formula that can be used which checks the x,y position of each element, as well needs the width and height of the element. X-Horizontal check formula … Read more

Learn Google Apps Script Use a Doc as a template to populate with Sheet data and email as PDF

Learn Google Apps Script Use a Doc as a template to populate with Sheet data and email as PDF This section covers how to get started with Google Apps Script and how to create common functionality with just a few lines of code.  Create files, select existing files and update them.  Use them within your … Read more

Create a AJAX quiz with JavaScript request JSON Data JavaScript Quiz Coding Exercise

Create a AJAX quiz with JavaScript request JSON Data JavaScript Quiz Coding Exercise AJAX for beginners explore JavaScript Requests to APIs https://www.udemy.com/course/ajax-bootcamp-learn-asynchronous-javascript-and-xml/ Using AJAX create amazing DYNAMIC web content using JSON data Update page elements and more

Learn AJAX request JSON object Practice AJAX Testing endpoint get JSON data from Random User API

Learn AJAX request JSON object Practice AJAX Testing endpoint get JSON data from Random User API Learn AJAX request JSON object Practice AJAX Testing endpoint get JSON data from Random User API * Practice AJAX Testing endpoint get JSON data from Random User API AJAX for beginners explore JavaScript Requests to APIs https://www.udemy.com/course/ajax-bootcamp-learn-asynchronous-javascript-and-xml/ Using AJAX … Read more

How to use JavaScript fetch to get local JSON data file contents JavaScript AJAX request

How to use JavaScript fetch to get local JSON data file contents JavaScript AJAX connect to local JSON file contents AJAX for beginners explore JavaScript Requests to APIs https://www.udemy.com/course/ajax-bootcamp-learn-asynchronous-javascript-and-xml/ Using AJAX create amazing DYNAMIC web content using JSON data Update page elements and more

Modern JavaScript Fetch Requests AJAX Code AJAX with JavaScript FETCH

Modern JavaScript Fetch Requests AJAX Code AJAX with JavaScript FETCH AJAX for beginners explore JavaScript Requests to APIs https://www.udemy.com/course/ajax-bootcamp-learn-asynchronous-javascript-and-xml/ Using AJAX create amazing DYNAMIC web content using JSON data Update page elements and more