JSFiddle

  • JS Foundations #3 is the latest revision

    No-Library (pure JS), HTML, CSS, JavaScript

    (function () {
    
    	"use strict";
      
      //call it as a function
      function globalFunc() {
      	//points to the global object or undefined under strict mode ...
  • Coursera JS Stuff

    No-Library (pure JS), HTML, CSS, JavaScript

    /* var string = "Hello" 
    string += " World"
    string = string + " World";
    console.log(string + "!")
    
    //console.log((5 + 4) / 3);
    //console.log(undefined / 5 ...
  • Space Between Name

    No-Library (pure JS), HTML, CSS, JavaScript

    //Add a space between letters in your name
    var name = "Joseph Daoud";
    console.log(name.split('').join(' '));
    
    var h1 = document ...
  • JS Functions #6 is the latest revision

    No-Library (pure JS), HTML, CSS, JavaScript

    <h1>
    JS Functions
    </h1>
    <p>
    A simple function to say hello to multiple friends.
    </p>
  • FizzBuzz Simple

    FizzBuzz Simple

    //PSUDOCODE
    //generate a random number between 0 and 5
    //if the result is / by 3 alert fizz
    
    
    var rand = Math ...
  • FizzBuzz 2

    No-Library (pure JS), HTML, CSS, JavaScript

    // METHOD 1
    
    for (var i = 1; i < 100; i++){
    	if (i % 3 === 0 && i % 5 === 0) {
        console.log(i + " FizzBuzz");
      }
      else if (i % 3 === 0) {
        console.log ...
  • JS-Problem1 #1 is the latest revision

    JS Problem 1 - Multiples of 3 and 5

    for (var i = 0; i < 1000; i++) {
    	if(i * 3 || i * 5 === 0) {
    		console.log("Multiples of 3 or 5 ...
  • FizzBuzz #2 is the latest revision

    FizzBuzz Solution

    <h1>
    FizzBuzz Solution
    </h1>
    <p>
    for(var i = 0; i<100; i++){<br>
    if(i % 15 === 0)<br>
    console.log("fizzBuzz");<br>
    else if(i % 3 === 0) <br>
    console ...</100;></p>