Skip to content

Instantly share code, notes, and snippets.

View tarunranka's full-sized avatar

Tarun Ranka tarunranka

View GitHub Profile
https://jakearchibald.github.io/svgomg/
let person = {
firstName:"Tarun",
lastName:"Ranka"
}
const printFullName = function(newHown,state,country){
console.log(`${this.firstName} ${this.lastName} ${newHown} ${state} ${country}`);
}
const callFn = printFullName.bind(person);
function replace0by5(number){
if(number === 0){
return 5;
}
var result=number,decimalPlace=1;
while(number > 0){
if(number % 10 === 0){
var newNumber = 5*decimalPlace;
result += newNumber;
}