Skip to content

Instantly share code, notes, and snippets.

👩‍💻
Chasing the dream!

Soundharya AM Soundharyaam

👩‍💻
Chasing the dream!
Block or report user

Report or block Soundharyaam

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Type coercion in JavaScript
console.log(false == "") //true
console.log(false == []) //true
console.log(false == {}) //false
console.log("" == 0) //true
console.log("" == []) //true
console.log( "" == {}) //false
console.log(0 == []) //true
console.log(0 == {}) //false
console.log(0 == null) //false
View gist:bdd6ccde10df814127676f11098f4fba

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
View keybase.md

Keybase proof

I hereby claim:

  • I am Soundharyaam on github.
  • I am soundharyaam (https://keybase.io/soundharyaam) on keybase.
  • I have a public key whose fingerprint is D6DC 7D7E 24FD EF88 2B82 EC38 736D 4B81 8F44 2E49

To claim this, I am signing this object:

@Soundharyaam
Soundharyaam / index.js
Created Apr 24, 2018
returning objects and saving it in new Array using JavaScript
View index.js
var work = {
"jobs": [{
"location": "Mountain View, CA",
"description": "Who moved my cheese cheesy feet cauliflower cheese. Queso taleggio when the cheese comes out everybody's happy airedale ricotta cheese and wine paneer camembert de normandie. Swiss mozzarella cheese slices feta fromage frais airedale swiss cheesecake. Hard cheese blue castello halloumi parmesan say cheese stinking bishop jarlsberg."
}, {
"location": "Seattle, WA",
"description": "Who moved my cheese cheesy feet cauliflower cheese. Queso taleggio when the cheese comes out everybody's happy airedale ricotta cheese and wine paneer camembert de normandie. Swiss mozzarella cheese slices feta fromage frais airedale swiss cheesecake. Hard cheese blue castello halloumi parmesan say cheese stinking bishop jarlsberg."
}, {
"location": "Nashville, TN",
"description": "Who moved my cheese cheesy feet cauliflower cheese. Q
@Soundharyaam
Soundharyaam / location.js
Created Apr 24, 2018
collecting click locations in JavaScript
View location.js
//add jQuery library before trying this code
$(document).click(function(loc) {
var x = loc.pageX;
var y = loc.pageY;
logClicks(x, y);
});
@Soundharyaam
Soundharyaam / object.js
Created Apr 23, 2018
checking the feasibility of dot or bracket notation to access the property in JavaScript
View object.js
var weirdObject = {
"property": "Time for an astronomy lesson!",
"property1": "Cameron's minor in college was astronomy",
"property-2": "The 4 Galilean largest moons of Jupiter are:",
"property 3": "Io, Ganymede, Callisto, Europa",
"property$": "Saturn's moon Enceladus has liquid water ocean under its icy surface",
" property": "The Sun contains 99.87% of the mass of the entire solar system",
"property()": "There are 5 dwarf planets in our solar system:",
"property[]": "Pluto, Ceres, Eris, Haumea, Makemake",
"8property": "Mars has two tiny moons: Phobos and Deimos"
@Soundharyaam
Soundharyaam / string.js
Created Apr 20, 2018
Converting the "AlbERt eInSTeiN" to "Albert EINSTEIN" - JavaScript
View string.js
var name = "AlbERt EINstEiN";
function nameChanger(oldName) {
var finalName = oldName;
var splitName = finalName.split(" ");
finalName = (splitName[0].charAt(0).toUpperCase()) + (splitName[0].slice(1, splitName[0].length).toLowerCase()) + " " + (splitName[1].toUpperCase());
return finalName;
};
console.log(nameChanger(name));
@Soundharyaam
Soundharyaam / string.js
Created Apr 20, 2018
Converting "audacity" to "Udacity" - String slicing
View string.js
var text= "audacity";
var udacityizer= function(string){
string= (string.charAt(1).ToUpperCase())+(string.slice(2,8));
return string;
}
console.log(udacityizer(text));
You can’t perform that action at this time.