JayvaScript Docs and Sample JayvaScript Code // #1 . Below you can see the ES6 Import statement being used at the top of the JavaScript file. This can be run and seen with node compiling , as if you were to run , node main2.js in your terminal , it would possibly not work , becasue ES6 modules require compilation, but Es6 Modules work perfectly well in the browser. - If you had JayvaScript installed ,JayvaScript would be one big object . j with methods attatched to it like , j.arrCheck() or j.capitalize() . In Jayvascript or other modules , this main object (j) is exported. After importing in the - j - object or variable from the file , it can be used directly in the browser. With JayvaScript tied in to the project locally or via CDN , A Script after that can be ran , and these methods can be made available and accessable , by using the import statement as shown below. // we will first import our code we will be using so it will then be accessable. import { j } from './JayvaScript.v.1.3.js' // Now we will use let , var , or const to start declaring a variable , and // start with some sample data in that variable. // We will have array and string methods to demonstrate here , and // we will be using this data for demonstration. let sampleArray = ["a" ,3,3, "Z" , "g" , 44 , "Z" , 100 , 699 , 3 ,3,3, 44 , 44 , 44] let sampleString = "lets make developing great again ! " ------------------------------------------------- // console.log(j.arrCheck(sampleArray , 44) , -j.arrCheck() , takes in two values , the first param is an array , and the second is a character to check. The array returns a boolean , true , or false , based on wether or not the second parameter - the character value - is or is not , present in the array , the first value. "j.arrCheck() Returns true , because \'a' is present in the array " ); ------------------------------------------------------------------------------------------------------- // console.log(j.arrCount(sampleArray , 3) , "j.arrCount() Returns 4 , because \'44' is present 4 times in the array "); // console.log(j.arrToString(sampleArray) , " j.arrToString() This returns the array as an entire string"); // console.log(j.arrLength(sampleArray), "j.arrLength() returns a number that is the total length of the array"); // console.log(j.range(100 , 200 ,3 ), "j.range() , takes in 2 - 3 optional parameters ,and returs an array with numbers within the range , and the third number is a stepper. "); // console.log(j.capitalize(sampleString),"j.capitalize() takes in a string and returns the first letter capitalized. "); // console.log(j.strCharAt(sampleString , 5) , " j.charAt() takes in a string , and a number index. This returns the character , located at that index in the array." ); j.playAudio('./exampleAudio.mp3');