THAPA TECHNICAL

HOUSE OF WEB DEVELOPERS AND TECHNOLOGY.

Build Facebook using JavaScript Only

Build Facebook using JavaScript Only


facebook in JavaScript



Welcome, all we will see how to build Facebook using JavaScript Only [Functionality]. JavaScript Facebook functionality. We will use an array and object to make Facebook using javascript. Where we will first ask the user to enter the Login details that is username and password.

Once then we will also, show the Status of the friends of that user by defining the condition and also using a function to check all is correct or not.



Here is the Source Code



 <script>

let database = [
{
username : 'vinod',
password : 'thapa',
}
];

let status = [
{
name : 'Thapatechnical',
status : 'I want 50K subscribers',
},
{
name : 'Thapa',
status : 'I will help Thapatechnical to get 50K subscriber',
}
];

const username = prompt('Enter your username');
const password = prompt('Enter your password');


const login = (user, pass) =>  {
if(user === database[0].username && pass === database[0].password){
// console.log(status);
for (let value of status){
console.log(value);
}
}else{
alert('Username or password is incorrect');
}
}

login(username,password );

</script>

17 comments:

  1. Fabulous post, you have denoted out some fantastic points, I likewise think this s a very wonderful website. I will visit again for more quality contents and also, recommend this site to all. Thanks. samcart

    ReplyDelete
  2. https://www.buyprimeaccount.com/
    https://www.buyprimeaccount.com/
    https://www.buyprimeaccount.com/
    https://www.buyprimeaccount.com/
    CSGO Prime Account & It's Marketplace Buy CSGO Prime Account is a function reserved for players who bought CS:GO (earlier than it became free-to-play) or are Private rank 21 or above.

    ReplyDelete
  3. Excellent article! We will be linking to this particularly great article on our
    site. Keep up the great writing. 온라인카지노

    ReplyDelete
  4. 바카라사이트 Wonderful article! We are linking to this particularly great content on our
    website. Keep up the great writing.

    ReplyDelete
  5. 토토사이트 Pretty section of content. I simply stumbled upon your weblog and in accession capital to say that I
    acquire actually loved account your blog posts.
    Any way I’ll be subscribing in your feeds or even I success you get right of
    entry to constantly rapidly.


    ReplyDelete
  6. 토토사이트 I found this to be interesting. Exciting to read your honest thought.

    ReplyDelete
  7. Hello there, You’ve done an incredible job. I will definitely digg it and personally recommend to my friends. I’m confident they’ll be benefited from this website.|
    경마사이트

    magosucowep

    ReplyDelete
  8. That is a great tip particularly to those new to the blogosphere.
    Simple but very accurate info? Thank you for sharing this one.
    A must read post!
    Appreciating the hard work you put into your site and detailed information you present.
    Wonderful read!
    토토사이트

    ReplyDelete
  9. I read this article. I think You put a lot of effort to create this article. I appreciate your work. สมัครสมาชิกสล็อตฝากขั้นต่ำ100

    ReplyDelete
  10. I finally found what I was looking for! I’m so happy. Your article is what I’ve been looking for for a long time. I’m happy to find you like this. Could you visit my website if you have time? I’m sure you’ll find a post of interest that you’ll find interesting. ufa168

    ReplyDelete
  11. Indeed, even Khloé Kardashian keeps on being submitting supported articles on the stage.iceliker

    ReplyDelete