- login api (that should return token if succeed)
- create user (also returns token)
- get all bootcamps (return bootcamps if the user has not made any choice on them)
const PI = 3.14159; | |
var num1 = 5; | |
console.log(num1); | |
// 5 // output | |
var num1 = "Hello"; | |
console.log(num1); | |
// Hello //output | |
let text = "Hello World!"; | |
console.log(text); | |
// Hello World! // output |
var stack = []; | |
console.log(stack); | |
// [] // output | |
// insert a | |
stack.push("a"); | |
// insert b | |
stack.push("b"); | |
// insert c | |
stack.push("c"); | |
// print the stack |
// first way | |
var numbers = [1, 3, 4, 5]; | |
console.log(numbers) | |
// [1, 3, 4, 5] // output | |
// using Array Class() | |
var fruits = new Array(); | |
fruits[0] = "apple"; | |
fruits[1] = "banana"; | |
fruits[2] = "orange"; | |
console.log(fruits) |
var country1 = "Bangladesh"; | |
var country2 = "bangladesh"; | |
country1 = country1.toLowerCase(); | |
console.log(country1 == country2) | |
true // result |
var country1 = "Bangladesh"; | |
var country2 = "bangladesh"; | |
console.log(country1 == country2) | |
false // results false |
var num1 = 5; | |
var num2 = "5"; | |
console.log(num1 === num2) | |
false // output |
var num1 = 5; | |
var num2 = "5"; | |
console.log(num1 == num2) | |
true // output |
var a = 7; | |
var b = 2; | |
var result = a/ b; | |
console.log(result); | |
3.5 |
## OK, this turned out to be more complicated than I would have | |
## thought. I feel that this approach *should* work, but it confuses | |
## R's multi-panel plots: | |
## Smaller margins, plus a top margin | |
par(mar=c(3.1, 3.1, .5, .5), oma=c(0, 0, 1.5, 0), mfrow=c(2, 2)) | |
## Plot dummy data | |
plot(1:10) |