This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import Banner from "../components/banner"; | |
import About from "../components/about"; | |
import Products from "../components/products"; | |
import Contact from "../components/contact"; | |
function App(){ | |
return( | |
<div> | |
<Banner /> | |
<About /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here i created an array with names of movies and i used the push() tag to add to the array and pop() to remove from the array and | |
added a punctuation mark by creating a variable and assigning it to put it into the array | |
let movies = ['Heartstopper','Young royals','Heartbreak high','Love simon','Love victor']; | |
movies.push('Young hearts'); | |
console.log(movies); | |
movies.pop() | |
console.log(movies); | |
let joined = movies.join('<'); | |
console.log(joined); |