This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Create a function with a loop that prints out only the odd positioned elements of an array that it takes in. | |
| 2. Create a function with a loop that prints out only the even numbers of an array that consists of only numbers. | |
| 3. Create a function that takes in two arguments, one is an array and one is a string. The function should loop through the array and return true for each time that the string matches the element the function is looping through. | |
| 4. Use JavaScript's random function inside a while loop to run the loop as long as your variable doesn't equal exactly 50. Limit your random sample to 1-100. Each time the loop runs, print something like this to the console: console.log(runValue + " doesn't equal 50, Run #" + runNumber). | |
| Hints: | |
| - You'll have to increment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Wix Contact Us App</title> | |
| <style type="text/css"> | |
| body { | |
| background: transparent; | |
| margin: 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var contactApp = (function (window, Wix, undefined) { | |
| 'use strict'; | |
| var basePath = 'http://dev-contact.apps.wix.com/', | |
| buttonUrl = { | |
| en: 'http://static.wix.com/media/7532433974faf66715759e54072a9990d923cdd4.png', | |
| pt: 'http://static.wix.com/media/161001484b3648b07d21208277ed558d4b2ce1e55.png', | |
| es: 'http://static.wix.com/media/44547837819ec7fceb4622732e06114447194e6b.png' | |
| }; |