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
    
  
  
    
  | <form> | |
| <th> | |
| <label for = "Games">Games</label> | |
| <tr> | |
| <td> | |
| <select id = "games"> | 
  
    
      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
    
  
  
    
  | <?php | |
| /** | |
| * Template Name: Custom Template - how WP knows what the page is | |
| */ | |
| get_header(); ?> | |
| <div id="primary" class="content-area"> | |
| <main id="main" class="site-main" role="main"> | |
| <article <?php post_class(); ?>> | |
| <header class="entry-header"> | |
| <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> | 
  
    
      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
    
  
  
    
  | :beginner: Basic Code Solution: | |
| function getIndexToIns(arr, num) { | |
| arr.sort(function(a, b) { | |
| return a - b; | |
| }); | |
| for (var a = 0; a < arr.length; a++) { | |
| if (arr[a] >= num) | |
| return a; | |
| } | 
  
    
      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
    
  
  
    
  | _ | 
  
    
      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
    
  
  
    
  | The indexOf() method returns the index within the calling String object of the first occurrence of the specified value, starting the search at fromIndex. Returns -1 if the value is not found. | |
| Note: For the Array method, see Array.prototype.indexOf(). | |
| Syntax | |
| str.indexOf(searchValue[, fromIndex]) | |
| Parameters | |
| searchValue | |
| A string representing the value to search for. | |
| fromIndex Optional | |
| An integer representing the index at which to start the search; the default value is 0. For fromIndex values lower than 0 or greater than str.length, the search starts at index 0 and str.length respectively. | 
  
    
      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
    
  
  
    
  | Number.isNaN(123) //false | |
| Number.isNaN(-1.23) //false | |
| Number.isNaN(5-2) //false | |
| Number.isNaN(0) //false | |
| Number.isNaN('123') //false | |
| Number.isNaN('Hello') //false | |
| Number.isNaN('2005/12/12') //false | |
| Number.isNaN('') //false | |
| Number.isNaN(true) //false | |
| Number.isNaN(undefined) //false | 
  
    
      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
    
  
  
    
  | function slasher(arr, howMany) { | |
| return arr.slice(howMany); | |
| } | |
| slasher([1, 2, 3], 2); | 
  
    
      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 joinMe = ["Split","me","into","an","array"]; | |
| var joinedString = ''; | |
| // Only change code below this line. | |
| joinedString = joinMe.join(" "); | 
  
    
      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 oldArray = [1,2,3]; | |
| var newArray = []; | |
| var concatMe = [4,5,6]; | |
| // Only change code below this line. | |
| newArray = oldArray.concat(concatMe); | 
  
    
      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 Car = function() { | |
| // this is a private variable | |
| var speed = 10; | |
| // these are public methods | |
| this.accelerate = function(change) { | |
| speed += change; | |
| }; | 
NewerOlder