Skip to content

Instantly share code, notes, and snippets.

View sandrabosk's full-sized avatar
👩‍💻
Always a student, never a master. Have to keep moving forward. ~C.Hall

Aleksandra Bošković sandrabosk

👩‍💻
Always a student, never a master. Have to keep moving forward. ~C.Hall
  • Ironhack
View GitHub Profile
// 1:
sayMyName('Sandra'); // => The name is Sandra.
function sayMyName(name){
return `The name is ${name}.`
}
// 2:
function study(what, cb){
// setTimeout(function(){
console.log(`I am studying ${what}.`);
cb();
// }, 3000)
}
function chill(){
console.log(`Finished with studying, now chilling.`);
}
// 1:
const firstName = 'ivan';
const lastName = 'ivan';
console.log(firstName === lastName); // => true
// 2:
let currency = '$';
let currencyUS = currency;
/*
* Square Every Digit
* https://www.codewars.com/kata/546e2562b03326a88e000020
*/
// Solution 1
// toString - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString
// join - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join
function squareDigits(num){
@sandrabosk
sandrabosk / README.md
Last active February 2, 2021 05:56 — forked from ross-u/README.md
Block vs Inline Elements - Cheat Sheet

HTML Introduction

Block vs Inline Elements - Cheat Sheet


HTML Intro exercise

PART 1

  • Take a look at the array of words and match each of the terms in the HTML code snippet:
    • Attribute
    • Value
    • Block element
    • Inline element

This is an example of how the exercise could be solved:

@sandrabosk
sandrabosk / index.html
Last active April 16, 2020 01:47 — forked from ross-u/index.html
Semantic HTML example
<!DOCTYPE html>
<html>
<head>
<title>Semantic HTML</title>
<meta charset="UTF-8" />
</head>
<body>
<nav>
<a href="">Home</a>

(challenge taken from the lesson CSS Intro)

Try it for yourself

  • Create a new HTML document
  • Assign #00D1AE as the background color of the body tag.