Skip to content

Instantly share code, notes, and snippets.

View appikonda's full-sized avatar

Sandeep Appikonda appikonda

View GitHub Profile
@appikonda
appikonda / red_box
Last active August 29, 2015 14:14
assignment5
<html>
<head>
<titl>Assignment #5</titl>
</head>
<style>
.move-me {
height: 200px;
width: 200px;
position: absolute;
background-color: #ff0000;
@appikonda
appikonda / change_text
Last active August 29, 2015 14:14
Mohnish Assignment #5
<html>
<head>
<titl>Assignment #5</titl>
</head>
<body>
<div>Input#1: <input type="text" id="one" value="" oninput="swapInput1()" /></div>
<div>Input#2: <input type="text" id="two" value="" oninput="swapInput2()" /></div>
<script>
@appikonda
appikonda / syllabus.md
Created July 18, 2014 04:51
JavaScript
  • where/how/what?
  • variables
  • types in js
  • conditionals
  • loops
  • operator precedence
  • functions
  • Type Conversion
  • return values
  • type of function?!
@appikonda
appikonda / function_def.md
Created July 17, 2014 04:57
Difference between two types of function definition
  • When do you use a variable assignment definition and when would you use a regular definition?
  • What's the difference
@appikonda
appikonda / Assignment3.js
Last active August 29, 2015 14:04
Type identification and action
function typer(val) {
// Implement me!
if(typeof(val) === "number" || typeof(val) === "string"){
return val;
}
else if(typeof(val) === "function" )
{
return val();
}
else if(typeof(val) === "object"){
@appikonda
appikonda / functions.js
Last active August 29, 2015 14:04
Assignment2.js
// Make this work!
// DO NOT DEFINE ARGUMENTS!!11one
function students() {
console.log("First student name: ");
console.log("Second student name: ");
console.log("Third student name: ");
console.log("Fourth student name: ");
console.log("Number of students: ");
}
// convert integer to string; 10 -> "10"
var foo = 10;
undefined
foo.toString();
"10"
// convert string to integer; "10" -> 10
var swing = "10";